192 — should add user with client owner role and delete owner¶
Description¶
Verifies that once a second user has the Client Owner role, the original owner can safely be removed from the client's Members list because at least one owner still remains.
Preconditions¶
- Signed-in user (the original owner) inside a freshly registered organization
- A client and five additional employees have been seeded via the API
- Browser is on the client's Members tab
Steps¶
- Click Add members, add employee 1 with the role Client Owner, then Save. Expected: a success toast appears and the list has 2 entries.
- Click the row-level Delete action on the original owner's row. Expected: the delete-member confirmation modal opens.
- Confirm the deletion. Expected: a "member removed" toast appears, the list has 1 entry, and employee 1 is the remaining member with the Client Owner role.
Related¶
- Spec:
playwright/tests/integration/client.spec.ts(line 671)