Skip to content

311 — should select all time records, then unselect one from selected list

Description

Verifies that after linking all available time records 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 time records (Private 01 €480.00 and Private 04 €2,880.00), and the user on the new invoice form past the client step.

Steps

  1. Click Add item, type the item name, open the Time records link picker, click Select all, save. Expected: the time-records total in the item modal reads 3,360.00.
  2. Reopen the picker. Expected: 2 selected. From the selected list, uncheck Private 01. Expected: the selection bar reads 1 selected | €480.00. Click Remove selected. Expected: 1 selected, 1 unselected. Save.
  3. Expected: the item shows time-records link count 1, time-records total 2,880.00, item price 2880, and final price 2880.
  • Spec: playwright/tests/integration/invoice.spec.ts (line 371)