047 — should create two accounts and delete one¶
Description¶
Verifies that the user can create two bank accounts in sequence and then move one of them to trash from its row action, leaving exactly one active account.
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¶
- Create the first bank account by clicking "Add bank account", filling name, currency, account number and IBAN, and clicking "Save". Expected: a "Created" toast appears, the row shows the entered currency and account number, and the list contains 1 account.
- Create a second bank account named "title" with the same currency and account number but a different IBAN, then click "Save". Expected: a "Created" toast appears, the "title" row shows the entered currency and account number, and the list now contains 2 accounts.
- On the "title" row, choose "Move to trash". Expected: a confirmation modal asks the user to confirm deleting the bank account.
- Confirm the move to trash. Expected: a "Moved to trash" toast appears and the accounts list goes back to 1 remaining account.
Related¶
- Spec:
playwright/tests/integration/bank.spec.ts(line 95)
Related¶
- Spec:
playwright/tests/integration/bank.spec.ts(line 95)