Skip to content

462 — should create client role with labels and edit it

Description

Verifies that a Client role can be created with a title, description, three labels and a client-role permission, and that the role can subsequently be reopened and renamed with a new title/description that is persisted.

Preconditions

  • Signed-in admin on a fresh organization with three pre-seeded labels (label1, label2, label3).
  • Settings → Roles area is open with the Client roles tab selected and the breadcrumb confirms "Client roles".

Steps

  1. Click Add client role, enter a two-word title, a seven-word description, attach all three labels, and pick the client-role permission.
  2. Click Create. → Expected: a "Created" toast appears and the new role row shows the title with all three labels attached.
  3. Open the newly-created role from the list. → Expected: the modal shows the original title, description and the three labels (closed/collapsed view confirms the label count).
  4. Replace the title and description with new two- and seven-word values and click Save. → Expected: an "Updated" toast appears and the role row now shows the new title.
  5. Reopen the role from the list. → Expected: the modal shows the updated title and updated description (changes were persisted).
  • Spec: playwright/tests/integration/roles.spec.ts (line 229)