Skip to content

188 — should add member with two roles and delete one

Description

Verifies that a member who has two client roles can have one of them removed via Edit Member by clicking the chip to deselect it, leaving the row with only the remaining role.

Preconditions

  • Signed-in user (the owner) inside a freshly registered organization
  • A client and five additional employees have been seeded via the API
  • Two client roles have been pre-created
  • Browser is on the client's Members tab

Steps

  1. Click Add members, add employee 1 with both Role 1 and Role 2, then Save. Expected: a success toast appears, the list has 2 entries, and employee 1's row shows both Role 1 and Role 2.
  2. Click the row-level Edit action on employee 1, click the Role 2 chip in the Roles dropdown to deselect it, press Escape to close the dropdown, then click Save. Expected: a success toast appears.
  3. Verify employee 1's row. Expected: only Role 1 remains in the Roles column.
  • Spec: playwright/tests/integration/client.spec.ts (line 616)