Skip to content

046 — should check wrong format of iban/swift

Description

Verifies that the IBAN and SWIFT fields are format-validated: entering nonsense strings prevents the bank account from being saved and surfaces format errors on both fields.

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.

Steps

  1. Click the "Add bank account" button. Expected: the new bank account form opens.
  2. Enter a valid account name, currency and account number.
  3. Type an invalid IBAN value (e.g. fsafdsa) and an invalid SWIFT value (e.g. safads).
  4. Click "Save". Expected: the form does not submit and both the IBAN and SWIFT fields show a "wrong format" validation message.
  • Spec: playwright/tests/integration/bank.spec.ts (line 84)
  • Spec: playwright/tests/integration/bank.spec.ts (line 84)