Skip to content

501 — should add members to the team and delete one

Description

Verifies that an admin can add three members to a team and then remove one of them, leaving the team with the remaining members and the owner.

Preconditions

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

Steps

  1. Click "Add members", pick member1, member2, and member3 in the Members field, and pick teamRoleName1 and teamRoleName2 in the Roles field.
  2. Click Save. Expected: a success popup appears and the Members list shows 4 members (the three added plus the owner).
  3. Click the Delete (trash) icon for member1. Expected: a confirmation modal asks the user to confirm removing this member.
  4. Confirm the modal. Expected: a "Member removed" popup appears and the Members list shows 3 members.
  5. Expected: member2's row shows their email and the roles teamRoleName1 and teamRoleName2.
  6. Expected: member3's row shows their email and the roles teamRoleName1 and teamRoleName2.
  7. Expected: the signed-in user's row shows their name with the role "Team Owner".
  • Spec: playwright/tests/integration/teams.spec.ts (line 229)