Skip to content

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

  1. 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.
  2. Click Save as draft and close the modal. Show all invoice columns.
  3. Expected: the new €0.00 row shows invoice number Draft, a created-at timestamp, the chosen issue and due dates, creator -, payment status -, and client Client 01. Expected: the list shows 1 invoice.
  4. 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.
  5. Expected: the active invoices list now shows 0 invoices.
  • Spec: playwright/tests/integration/invoice.spec.ts (line 189)