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¶
- Click Add item, type the item name, open the Additional items link picker, click Select all, save. Expected: the expense total reads
700.00. - Reopen the picker. Expected: 2 selected. From the selected list, uncheck
expense1. Expected: the selection bar reads1 selected | €500.00. Click Remove selected. Expected: 1 selected, 1 unselected. Save. - Expected: the additional-items link count is
1, expense total reads200.00, item price200, final price200.
Related¶
- Spec:
playwright/tests/integration/invoice.spec.ts(line 443)