Skip to content

458 — should create user role and edit it

Description

Verifies that a User (global) role can be created with a title, description and ultimate Timerecords permission, and that the role can be reopened and renamed with new title/description values that are persisted. Note that — unlike Project, Client and Team roles — User roles do not support labels.

Preconditions

  • Signed-in admin on a fresh organization.
  • Settings → Roles area is open with the User roles tab selected and the breadcrumb confirms "User roles".

Steps

  1. Click Add user role, enter a two-word title and a seven-word description, and toggle Timerecords ultimate permission on.
  2. Click Create. → Expected: a "Created" toast appears and the new role row shows the title.
  3. Open the newly-created role from the list. → Expected: the modal shows the original title and description.
  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 146)