187 — should add member and then edit his roles¶
Description¶
Verifies that an existing client member's roles can be extended via the Edit Member action: adding a second role keeps the original role and the row ends up showing both roles together.
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¶
- Click Add members, add employee 1 with Role 1, then Save. Expected: a success toast appears, the list has 2 entries, and employee 1's row shows Role 1.
- Click the row-level Edit action on employee 1, add Role 2 to the Roles field and click Save to close the dropdown and Save again to confirm the form. Expected: a success toast appears.
- Verify employee 1's row. Expected: the Roles column shows both Role 1 and Role 2.
Related¶
- Spec:
playwright/tests/integration/client.spec.ts(line 598)