193 — should add team to client members, and then delete team¶
Description¶
Verifies that adding a team to a client brings in every team member with a shared role and the team label, that the owner inherits the team's role on top of Client Owner, and that removing the team via a single team-member row strips the team label from everyone while leaving the owner's individual membership intact.
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 contains employee 1 + employee 2)
- Browser is on the client's Members tab
Steps¶
- Verify the owner's starting row. Expected: the owner has team
-and role Client Owner. - Click Add teams, pick Team 1, assign Role 1, then Save and reload. Expected: the list has 3 entries.
- Verify each row. Expected: employee 1 and employee 2 both show team Team 1 and role Role 1 with a single removable option (Team 1); the owner shows team Team 1 with roles Client Owner + Role 1 and two removable options (Team 1 and "member").
- Click Remove team on employee 1's Team 1 row and confirm. Expected: a "team removed" toast appears.
- Verify the final state. Expected: the list has 1 entry — the owner — back to team
-, with roles Client Owner + Role 1 and only the "member" removable option.
Related¶
- Spec:
playwright/tests/integration/client.spec.ts(line 689)