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