Skip to content

044 — should create new account with only required fields

Description

Verifies that a bank account can be created by filling in only the required fields (name, currency, account number, IBAN), leaving SWIFT blank, and that the resulting account is stored with an empty SWIFT value.

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 the "Add bank account" button. Expected: the new bank account form opens.
  2. Enter the account name, pick a currency, type the account number and the IBAN. Leave the SWIFT field empty.
  3. Click "Save". Expected: a "Created" confirmation toast appears.
  4. Inspect the new row in the list. Expected: it shows the chosen currency, account number and IBAN, and the SWIFT column is empty.
  5. Look at the accounts list. Expected: the list contains exactly 1 bank account.
  • Spec: playwright/tests/integration/bank.spec.ts (line 61)
  • Spec: playwright/tests/integration/bank.spec.ts (line 61)