Skip to content

190 — should create user, delete his role and save with no role

Description

Verifies that a client member can be saved without any role assigned: starting from a member with one role, removing that role via Edit Member persists the change and the Roles column falls back to a - placeholder.

Preconditions

  • Signed-in user (the owner) inside a freshly registered organization
  • A client and five additional employees have been seeded via the API
  • Two client roles have been pre-created
  • Browser is on the client's Members tab

Steps

  1. Click Add members, add employee 1 with Role 1, then Save. Expected: a success toast appears and the list has 2 entries.
  2. Click the row-level Edit action on employee 1, deselect Role 1 in the Roles dropdown, press Escape to close it, then click Save. Expected: a success toast appears.
  3. Verify employee 1's row. Expected: the Roles column displays -.
  • Spec: playwright/tests/integration/client.spec.ts (line 641)