Skip to content

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

  1. 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.
  2. Toggle Set as paid on and set date of payment to the 11th day.
  3. Click Save as draft, then close the modal. Show all invoice columns.
  4. Expected: the new row (total €0.00) shows invoice number Draft, a created-at timestamp, the chosen date of issue, the chosen due date, creator -, payment status Paid with the chosen payment date, and client Client 01.
  • Spec: playwright/tests/integration/invoice.spec.ts (line 171)