Skip to content

320 — should add an item then delete it from the items grid

Description

Verifies that an invoice item added to the items grid can be deleted via its row action, removing it from the grid and resetting the totals.

Preconditions

  • Signed-in tenant with Client 01, Private 04 time record, expense2, and the user on the new invoice form past the client step.

Steps

  1. Click Add item, set its name, link time record Private 04 and expense expense2, save the item.
  2. Expected: the items grid shows 1 item with items total price €3,080.00.
  3. Trigger the item's Delete row action. Expected: the delete-item confirmation appears. Confirm in the modal.
  4. Expected: the items grid shows 0 items, items total discount €0.00, and items total price €0.00.
  • Spec: playwright/tests/integration/invoice.spec.ts (line 557)