Skip to content

510 — should add member, give him Team owner role, and delete myself from team

Description

Verifies that the current team owner can promote another member to "Team Owner" and, once a second owner exists, can remove themselves from the team — leaving the team with the new owner only.

Preconditions

  • Signed-in admin user (the original 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, pick the role teamRoleName1, and click Save. Expected: a success popup appears, the Members list shows 2 members, member1 has the role teamRoleName1, and the signed-in user shows "Team Owner".
  2. Click the Edit (pencil) icon on member1's row, add the role "Team Owner" to member1, and click Save. Expected: a "Saved" popup appears.
  3. Expected: the Members list still shows 2 members. Expected: member1's row now shows the roles teamRoleName1 and "Team Owner". Expected: the signed-in user's row still shows "Team Owner".
  4. Click the Delete (trash) icon for the signed-in user's row. Expected: a confirmation modal asks the user to confirm removing themselves.
  5. Confirm the modal. Expected: a "Member removed" popup appears.
  6. Expected: the Members list shows 1 member: member1 with the roles teamRoleName1 and "Team Owner".
  • Spec: playwright/tests/integration/teams.spec.ts (line 402)