Skip to content

314 — should select all expenses, then unselect one from selected list

Description

Verifies that after linking all available expenses to an invoice item the user can return to the picker, unselect one from the Selected list, and the item totals are recomputed accordingly.

Preconditions

  • Signed-in tenant with Client 01, two billable expenses (expense1 €500, expense2 €200) totalling €700.00, and the user on the new invoice form past the client step.

Steps

  1. Click Add item, type the item name, open the Additional items link picker, click Select all, save. Expected: the expense total reads 700.00.
  2. Reopen the picker. Expected: 2 selected. From the selected list, uncheck expense1. Expected: the selection bar reads 1 selected | €500.00. Click Remove selected. Expected: 1 selected, 1 unselected. Save.
  3. Expected: the additional-items link count is 1, expense total reads 200.00, item price 200, final price 200.
  • Spec: playwright/tests/integration/invoice.spec.ts (line 443)