Skip to content

312 — should bulk-delete linked time records via deleteAll

Description

Verifies the Delete all shortcut on an invoice item's linked time records: it unlinks every linked time record at once, and the time-records link control reverts to the empty "Select" state.

Preconditions

  • Signed-in tenant with Client 01, two billable time records totalling €3,360.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 reads 3,360.00.
  2. Click Delete all linked time records.
  3. Expected: the time-records link control shows count 0 (i.e. reverted to the empty "Select" state). Note: this product behavior leaves the item's cached price field as-is and only resets the link button.
  • Spec: playwright/tests/integration/invoice.spec.ts (line 395)