Skip to content

423 — should add two users, then delete one

Description

Verifies that two employees can be added to a project at the same time with a shared project role, and that one of them can then be removed via the project members table.

Preconditions

  • Signed-in tenant with a seeded project, two seeded employees, and two seeded project roles.
  • Project Members page open for the seeded project (owner is already implicit member).

Steps

  1. Click "Add users", pick employee 1 and employee 2 in the Users field, and pick role 1 in the Roles field.
  2. Click "Save". Expected: a success toast is shown and the members table now lists 3 members (owner + 2 added).
  3. Expected: employee 1 appears with team "-" and role 1; employee 2 appears with team "-" and role 1.
  4. Click the delete action on employee 1's row. Expected: the delete-member confirmation modal is shown.
  5. Confirm the delete modal. Expected: a "Member removed" toast is shown; the members table now lists 2 members and employee 2 is still present.
  • Spec: playwright/tests/integration/project.spec.ts (line 318)