310 — should add and edit linked time records on an item¶
Description¶
Verifies that an invoice item can have one time record linked, then be reopened to link a second one, and the item's price and final price track the sum of the linked time records' billable amounts.
Preconditions¶
- Signed-in tenant with
Client 01, two billable time records (Private 01€480.00 andPrivate 04€2,880.00), and the user on the new invoice form past the client step.
Steps¶
- Click Add item, type the item name, then open the Time records link picker. Expected: 2 unselected and 0 selected time records.
- Check
Private 04. Expected: the selection bar reads1 selected | €2,880.00. Click Add selected. Expected: 1 selected, 1 unselected. Save the picker. - Expected: the item shows the time-records link count
1, the time-records total2,880.00, item price2880, and final price2880. - Reopen the Time records link picker. Expected: 1 unselected and 1 selected. Check
Private 01. Expected: the selection bar reads1 selected | €480.00. Click Add selected. Expected: 2 selected, 0 unselected. Save the picker. - Expected: the time-records link count is
2, time-records total reads3,360.00, item price3360, and final price3360.
Related¶
- Spec:
playwright/tests/integration/invoice.spec.ts(line 336)