303 — should create draft and set as paid via modal toggle¶
Description¶
Verifies that an invoice draft saved with the Set as paid toggle and a date of payment shows up in the invoice list with the correct dates and "Paid" status without needing a row-level action.
Preconditions¶
- Signed-in tenant with
Client 01, a seeded bank account, and the user on the Invoices list page.
Steps¶
- Click Create invoice, pick
Client 01, click Next, then fill date of issue (4th day), due date (8th), date of taxable supply (10th), and the bank account. - Toggle Set as paid on and set date of payment to the 11th day.
- Click Save as draft, then close the modal. Show all invoice columns.
- Expected: the new row (total
€0.00) shows invoice numberDraft, a created-at timestamp, the chosen date of issue, the chosen due date, creator-, payment statusPaidwith the chosen payment date, and clientClient 01.
Related¶
- Spec:
playwright/tests/integration/invoice.spec.ts(line 171)