Skip to content

050 — should create account and archive it in modal

Description

Verifies that a bank account can be archived from inside the account detail/edit modal (instead of using the row's quick actions), with the same end result as archiving from the list.

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. Click "Add bank account", fill name, currency, account number and IBAN, then click "Save". Expected: a "Created" toast appears and the list contains 1 account.
  2. Click the newly created account row to open its detail modal. Expected: the bank account detail modal opens.
  3. Click the "Archive" button inside the modal. Expected: the archive confirmation modal opens.
  4. Confirm archiving. Expected: an "Archived" toast appears and the active accounts list becomes empty (0 accounts).
  • Spec: playwright/tests/integration/bank.spec.ts (line 168)
  • Spec: playwright/tests/integration/bank.spec.ts (line 168)