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