503 — should not add new roles for already added members¶
Description¶
Verifies that re-adding an existing team member through the Add-members form does not overwrite or append a new role to that member; the existing member keeps the role they originally had.
Preconditions¶
- Signed-in admin user (the team owner).
- One seeded user (member1) is available.
- A team has just been created and the team detail is open.
Steps¶
- Click "Add members", pick member1, and pick the role teamRoleName1.
- Click Save. Expected: a success popup appears, the Members list shows 2 members, member1 has the role teamRoleName1, and the signed-in user shows the role "Team Owner".
- Click "Add members" again, pick member1 once more, but this time pick the role teamRoleName3.
- Click Save. Expected: a "Member already added" warning appears for member1 and the Members list still shows only 2 members.
- Expected: member1's row still shows only the original role teamRoleName1 (teamRoleName3 was not applied).
- Expected: the signed-in user's row still shows the role "Team Owner".
Related¶
- Spec:
playwright/tests/integration/teams.spec.ts(line 280)