194 — should add two teams to client members and delete one¶
Description¶
Verifies that two teams sharing the same role can be added at once to a client, that members belonging to both teams show two team chips, and that removing one team from the owner's row only strips that team while keeping the other team intact for all overlapping members.
Preconditions¶
- Signed-in user (the owner) inside a freshly registered organization
- A client and five additional employees have been seeded via the API
- A client role and two teams have been pre-created (Team 1 = employee 1 + employee 2, Team 2 = employee 2 + employee 3)
- Browser is on the client's Members tab
Steps¶
- Click Add teams, pick both Team 1 and Team 2, assign Role 1, click Save and reload. Expected: the list has 4 entries.
- Verify the rows. Expected: employee 1 shows team Team 1 / Role 1; employee 2 shows both teams Team 1, Team 2 / Role 1; employee 3 shows Team 2 / Role 1; the owner shows both teams / Client Owner + Role 1.
- Click Remove team on the owner's Team 1 row and confirm. Expected: a "team removed" toast appears.
- Verify the resulting list. Expected: the list has 3 entries — employee 2 now only shows Team 2 / Role 1, employee 3 still shows Team 2 / Role 1, and the owner is left with team Team 2 / Client Owner + Role 1 (and the "member" removable option). Employee 1 (only in Team 1) is gone.
Related¶
- Spec:
playwright/tests/integration/client.spec.ts(line 724)