Skip to content

455 — should create roles and delete via row button and checkbox

Description

Verifies that multiple Project 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 project role already exists).
  • Settings → Roles area is open with the Project roles tab selected and the breadcrumb confirms "Project roles".

Steps

  1. Create three Project roles in a row: for each title, click Add project role, enter the title, toggle ultimate project permission, click Create. → Expected: a "Created" toast appears after each save and the list now shows 4 total roles (3 new + 1 default).
  2. 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.
  3. 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.
  • Spec: playwright/tests/integration/roles.spec.ts (line 87)