Skip to content

053 — should create two accounts and bulk archive them

Description

Verifies that multiple bank accounts can be selected at once via "Select all" and then archived in a single bulk action.

Preconditions

  • A fresh test user is registered, onboarded and signed into a newly created organization.
  • The user is on the organization's Bank account settings page.
  • No bank accounts exist yet for this organization.

Steps

  1. Create the first bank account by clicking "Add bank account", filling its data and clicking "Save". Expected: a "Created" toast appears, the row shows the chosen currency, and the list contains 1 account.
  2. Create a second bank account named "title" with a different IBAN and click "Save". Expected: a "Created" toast appears, the "title" row shows the chosen currency, and the list contains 2 accounts.
  3. Click "Select all". Expected: the bulk-actions header shows "2" items selected.
  4. Click the bulk "Archive" action. Expected: a confirmation modal asks the user to confirm archiving the selected bank accounts.
  5. Confirm the bulk archive. Expected: an "Archived" toast appears and the active accounts list becomes empty (0 accounts).
  • Spec: playwright/tests/integration/bank.spec.ts (line 239)
  • Spec: playwright/tests/integration/bank.spec.ts (line 239)