304 — should create draft, move to trash via row action, then assert empty list¶
Description¶
Verifies that a draft invoice can be moved to trash from its row action and disappears from the active invoices list.
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, fill date of issue (4th day), due date (8th), date of taxable supply (10th), and the bank account. - Click Save as draft and close the modal. Show all invoice columns.
- Expected: the new
€0.00row shows invoice numberDraft, a created-at timestamp, the chosen issue and due dates, creator-, payment status-, and clientClient 01. Expected: the list shows 1 invoice. - From the row action menu, click Move to trash. Expected: the move-to-trash confirmation appears. Confirm in the modal. Expected: the "Moved to trash" toast appears.
- Expected: the active invoices list now shows 0 invoices.
Related¶
- Spec:
playwright/tests/integration/invoice.spec.ts(line 189)