Skip to content

461 — should create 100 roles and delete all

Description

Stress scenario: verifies the User roles list renders 90 seeded global 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 global roles named "Global role 01" … "Global role 90" have been seeded via the API.
  • Settings → Roles area is open with the User roles tab selected and the breadcrumb confirms "User roles".

Steps

  1. Reload the page and scroll the list from the centre to force virtualised rows to render. → Expected: the User roles list contains 91 entries (90 seeded + 1 default).
  2. Tick the row checkbox of "Global role 01" and click the All selection toggle. → Expected: the selection counter shows "90" items selected.
  3. 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 User role remains in the list.
  • Spec: playwright/tests/integration/roles.spec.ts (line 204)