Skip to content

307 — should bulk archive two invoices and surface them via filters

Description

Verifies that two invoices can be bulk-archived from the list and that the Show archived quick filter brings them back into view.

Preconditions

  • Signed-in tenant with Client 01, a seeded bank account, and the user on the Invoices list page.

Steps

  1. Create two drafts back-to-back: open the invoice form, pick Client 01, fill issue/due/taxable dates and bank account, save as draft and close. Repeat. Expected: the list shows 2 invoices.
  2. Click Select all. Expected: the selection counter reads 2.
  3. Click the bulk Archive action. Expected: the archive confirmation appears. Confirm in the modal. Expected: the "Archived" toast appears.
  4. Expected: the active list now shows 0 invoices.
  5. Open Filters, click the quick filter Show archived, and apply. Expected: the list now shows the 2 archived invoices.
  • Spec: playwright/tests/integration/invoice.spec.ts (line 247)