Skip to content

500 — should add members to the team

Description

Verifies that an admin can add several members with shared roles to a team and that the resulting Members list displays each member's name, avatar, and roles correctly — including a warning when the team owner is re-added.

Preconditions

  • Signed-in admin user (the team owner) with an uploaded profile avatar.
  • Three seeded users (member1, member2) and the signed-in user (ownerName) are available.
  • A team has just been created and the team detail is open.

Steps

  1. Click "Add members" in the Members section.
  2. In the Members field, pick member1, member2, and the signed-in user (ownerName).
  3. In the Roles field, pick teamRoleName1 and teamRoleName2.
  4. Click Save. Expected: a "Member already added" warning appears for the signed-in user (ownerName) because they are already the team's owner.
  5. Expected: the Members list now shows 3 members.
  6. Expected: the signed-in user's row shows the uploaded profile avatar.
  7. Expected: member1's row shows their email and the roles teamRoleName1 and teamRoleName2.
  8. Expected: member2's row shows their email and the roles teamRoleName1 and teamRoleName2.
  9. Expected: the signed-in user's row shows their name with the role "Team Owner".
  • Spec: playwright/tests/integration/teams.spec.ts (line 212)