Skip to content

506 — should test members input

Description

Verifies the behavior of the Members multi-select in the Add-members form: chosen members are shown as chips both when the dropdown is closed and when it is open, and clicking a chip removes that member from the selection.

Preconditions

  • Signed-in admin user (the team owner).
  • Two seeded users (member1, member2) are available.
  • A team has just been created and the team detail is open with the Add-members form available.

Steps

  1. Click "Add members" to open the form.
  2. In the Members field, pick member1, member2, and the signed-in user (ownerName). In the Roles field, pick teamRoleName2.
  3. Expected: with the dropdown closed, the Members control shows chips for member1, member2, and the signed-in user (3 selected).
  4. Click the Members input to re-open the dropdown. Expected: the dropdown still shows member1, member2, and the signed-in user as selected (3 selected).
  5. Click member1 in the dropdown to deselect them. Expected: the dropdown now shows only member2 and the signed-in user as selected (2 selected).
  • Spec: playwright/tests/integration/teams.spec.ts (line 333)