Skip to content

580 — should create new project role, delete it, and check recovered role

Description

Verifies that a Project Role created with title, description, and ultimate permission can be moved to trash and restored, with its title and description preserved on the restored role's detail modal.

Preconditions

  • Signed-in admin owner of a fresh organization.
  • User is logged into the organization.

Steps

  1. Open Roles, navigate to Project Roles. Expected: Breadcrumbs read "Project roles".
  2. Click "Add project role", enter title and description, enable the ultimate permission, and create. Expected: "Created" toast appears.
  3. Open the new role's detail, click "Move to trash", confirm. Expected: "Moved to trash" toast appears.
  4. Open the Trash page. Expected: Exactly 1 item listed — type "Project Role", owner name, today's date.
  5. Trigger "Restore all". Expected: Trash empties.
  6. Return to Roles → Project Roles. Expected: Breadcrumbs read "Project roles" and the restored role is present.
  7. Open the restored role. Expected: Title matches the original and description matches the original.
  • Spec: playwright/tests/integration/trash.spec.ts (line 403)