Skip to content

431 — should require role when editing and clearing all roles

Description

Verifies that editing an existing project member to remove every role flags the Role field as required. Currently skipped because the redesigned Edit member dialog silently blocks the save without surfacing a visible "Required" message — there is nothing testable in the DOM until product re-adds the validation message.

Preconditions

  • Signed-in tenant with a seeded project, one seeded employee, and one seeded project role.
  • Project Members page open for the seeded project.

Steps

  1. Click "Add users", pick employee 1, pick role 1, and click "Save". Expected: a success toast is shown and the members table lists 2 members.
  2. Click the edit action on employee 1's row, click on the role 1 chip to remove it (leaving zero roles), dismiss the picker, and click "Save".
  3. Expected: the Role field shows a "Required" validation message and the save is blocked.
  • Spec: playwright/tests/integration/project.spec.ts (line 462)