Skip to content

051 — should create account and delete it in modal

Description

Verifies that a bank account can be moved to trash from inside the account detail modal, with a confirmation step, and that it then disappears from the active 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 new account row to open its detail modal. Expected: the bank account detail modal opens.
  3. Click the "Move to trash" button inside the modal. Expected: a confirmation modal asks the user to confirm deleting the bank account.
  4. Confirm moving to trash. Expected: a "Moved to trash" toast appears and the active accounts list becomes empty (0 accounts).
  • Spec: playwright/tests/integration/bank.spec.ts (line 185)
  • Spec: playwright/tests/integration/bank.spec.ts (line 185)