Skip to content

469 — should create 100 roles and delete all

Description

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

Steps

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