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¶
- Click "Add members", pick member1, member2, and member3 in the Members field, and pick teamRoleName1 and teamRoleName2 in the Roles field.
- Click Save. Expected: a success popup appears and the Members list shows 4 members (the three added plus the owner).
- Click the Delete (trash) icon for member1. Expected: a confirmation modal asks the user to confirm removing this member.
- Confirm the modal. Expected: a "Member removed" popup appears and the Members list shows 3 members.
- Expected: member2's row shows their email and the roles teamRoleName1 and teamRoleName2.
- Expected: member3'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 229)