Skip to content

306 — should bulk move two invoices to trash

Description

Verifies that selecting two invoices and using the bulk Move to trash action removes both from the active invoice list at once.

Preconditions

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

Steps

  1. Create the first draft: open the invoice form, pick Client 01, fill issue/due/taxable dates and the bank account, save as draft and close. Expected: the list shows 1 invoice.
  2. Create the second draft the same way, but add one item named title priced at 200, save the item, then save as draft and close. Expected: the list shows 2 invoices.
  3. Click the Select all checkbox in the list header. Expected: the selection counter reads 2.
  4. Click the bulk Move to trash action. Expected: the bulk "Move invoices to trash" confirmation appears. Confirm in the modal.
  5. Expected: the active invoices list now shows 0 invoices.
  • Spec: playwright/tests/integration/invoice.spec.ts (line 224)