465 — should create 100 roles and delete all¶
Description¶
Stress scenario: verifies the Client roles list renders 90 seeded roles plus the default and that all of them can be trashed in a single bulk action by using "Select all".
Preconditions¶
- Signed-in admin on a fresh organization.
- 90 Client roles named "Client role 01" … "Client role 90" have been seeded via the API.
- Settings → Roles area is open with the Client roles tab selected and the breadcrumb confirms "Client roles".
Steps¶
- Reload the page and scroll the list from the centre to force virtualised rows to render. → Expected: the Client roles list contains 91 entries (90 seeded + 1 default).
- Tick the row checkbox of "Client role 01" and click the All selection toggle. → Expected: the selection counter shows "90" items selected.
- Click the bulk Move to trash action and confirm the modal. → Expected: the confirmation copy uses the plural "trash these roles" wording, a "Moved to trash" toast appears, and only 1 Client role remains in the list.
Related¶
- Spec:
playwright/tests/integration/roles.spec.ts(line 289)