Skip to content

457 — should create 100 roles and delete all

Description

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

Steps

  1. Reload the page and scroll the list from the centre to force virtualised rows to render. → Expected: the Project roles list contains 91 entries (90 seeded + 1 default).
  2. Tick the row checkbox of "Project 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 Project role remains in the list.
  • Spec: playwright/tests/integration/roles.spec.ts (line 121)