507 — should test roles input¶
Description¶
Verifies the behavior of the Roles multi-select in the Add-members form: chosen roles are shown as chips both with the dropdown closed and open, and clicking a chip removes that role from the selection.
Preconditions¶
- Signed-in admin user (the team owner).
- Three seeded team roles (teamRoleName1, teamRoleName2, teamRoleName3) exist.
- A team has just been created and the team detail is open with the Add-members form available.
Steps¶
- Click "Add members" to open the form.
- In the Roles field, pick teamRoleName1, teamRoleName2, and teamRoleName3.
- Expected: with the dropdown closed, the Roles control shows chips for all three roles (3 selected).
- Click the Roles input to re-open the dropdown. Expected: the dropdown still shows all three roles as selected (3 selected).
- Click teamRoleName1 in the dropdown to deselect it. Expected: the dropdown now shows only teamRoleName2 and teamRoleName3 as selected (2 selected).
Related¶
- Spec:
playwright/tests/integration/teams.spec.ts(line 346)