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 01and the user on the new invoice form past the client step. No items added yet.
Steps¶
- Expected: the items grid is empty and the bank account field is visible.
- 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). - Toggle Has unit name off. Expected: the
Unit namecolumn disappears; remaining headers areItem name,Time records,Additional items,Price / unit,Units,Price,Discount,Total price. - Toggle Has unit price off. Expected:
Price / unitdisappears; headers reduce toItem name,Time records,Additional items,Units,Price,Discount,Total price. - Toggle Has units off. Expected:
Unitsdisappears; headers areItem name,Time records,Additional items,Price,Discount,Total price. TheDiscountcolumn remains because it cannot be hidden.
Related¶
- Spec:
playwright/tests/integration/invoice.spec.ts(line 575)