Skip to content

321 — should toggle hideable item columns and reflect headers

Description

Verifies that the invoice items grid's per-column visibility toggles (Unit name, Price/unit, Units) hide their headers, while the Discount column stays visible because its toggle is intentionally excluded.

Preconditions

  • Signed-in tenant with Client 01 and the user on the new invoice form past the client step. No items added yet.

Steps

  1. Expected: the items grid is empty and the bank account field is visible.
  2. Expected: the items table headers are exactly Item name, Time records, Additional items, Unit name, Price / unit, Units, Price, Discount, Total price (plus leading/trailing empty header cells for row controls).
  3. Toggle Has unit name off. Expected: the Unit name column disappears; remaining headers are Item name, Time records, Additional items, Price / unit, Units, Price, Discount, Total price.
  4. Toggle Has unit price off. Expected: Price / unit disappears; headers reduce to Item name, Time records, Additional items, Units, Price, Discount, Total price.
  5. Toggle Has units off. Expected: Units disappears; headers are Item name, Time records, Additional items, Price, Discount, Total price. The Discount column remains because it cannot be hidden.
  • Spec: playwright/tests/integration/invoice.spec.ts (line 575)