463 — should create roles and delete via row button and checkbox¶
Description¶
Verifies that multiple Client roles can be created and then trashed in two ways — opening a single role and using its "Move to trash" action, and selecting a different role via its row checkbox and using the bulk "Move to trash" action.
Preconditions¶
- Signed-in admin on a fresh organization (one default client role already exists).
- Settings → Roles area is open with the Client roles tab selected and the breadcrumb confirms "Client roles".
Steps¶
- Create three Client roles in a row: for each title, click Add client role, enter the title, pick the client-role permission, click Create. → Expected: a "Created" toast appears after each save and the list now shows 4 total roles (3 new + 1 default).
- Open the first created role, click its Move to trash button, and confirm the trash modal. → Expected: the confirmation copy uses the singular "trash this role" wording, a "Moved to trash" toast appears, and the list drops to 3 roles.
- Tick the row checkbox of the second created role, click the bulk Move to trash action, and confirm the trash modal. → Expected: the confirmation copy uses the plural "trash these roles" wording, a "Moved to trash" toast appears, and the list drops to 2 roles.
Related¶
- Spec:
playwright/tests/integration/roles.spec.ts(line 255)