Skip to content

504 — should edit member and delete role

Description

Verifies that an admin can edit an existing team member and remove one of their roles, and that the change is persisted on the Members list.

Preconditions

  • Signed-in admin user (the team owner).
  • One seeded user (member1) is available.
  • A team has just been created and the team detail is open.

Steps

  1. Click "Add members", pick member1, and pick the roles teamRoleName1 and teamRoleName2.
  2. Click Save. Expected: a success popup appears and member1's row shows both roles teamRoleName1 and teamRoleName2.
  3. Click the Edit (pencil) icon on member1's row.
  4. In the Roles field, click the chip for teamRoleName2 to remove it.
  5. Click Save. Expected: a "Saved" popup appears.
  6. Expected: member1's row now shows only teamRoleName1 (teamRoleName2 has been removed).
  • Spec: playwright/tests/integration/teams.spec.ts (line 306)