424 — should warn when re-adding an existing member¶
Description¶
Verifies that attempting to add users who are already project members surfaces a "member already added" warning for each duplicate and leaves the existing members and their roles unchanged.
Preconditions¶
- Signed-in tenant with a seeded project, two seeded employees, and two seeded project roles.
- Project Members page open for the seeded project (the owner is already an implicit member with the "Project Owner" role).
Steps¶
- Click "Add users", pick employee 1 and employee 2, pick role 1, and click "Save". Expected: a success toast is shown and the members table lists 3 members.
- Click "Add users" again, this time picking the owner and employee 2 in the Users field and role 2 in the Roles field, then click "Save". Expected: a success toast is shown.
- Expected: an "already added" warning is shown for the owner.
- Expected: an "already added" warning is shown for employee 2.
- Expected: the members table still lists exactly 3 members; employee 1 keeps role 1, employee 2 keeps role 1 (not role 2), and the owner keeps the "Project Owner" role.
Related¶
- Spec:
playwright/tests/integration/project.spec.ts(line 341)