Skip to content

645 — Discard changes when the bulk edit modal is cancelled

Description

Non-happy path. Staging a change in the bulk-edit modal and then cancelling sends no patch — every selected record keeps its original values.

Preconditions

  • Signed in to a freshly seeded test organization.
  • Three time records seeded via the GraphQL API, each on a different client/project/task.
  • Time Records page open in the Reports view.

Steps

  1. Tick the selection checkbox on all three rows. Expected: the floating bar shows "3 selected".
  2. Open the bulk-edit modal via the pencil action.
  3. Set ProjectReplace and pick a project.
  4. Click Cancel (do not save). Expected: the modal closes.
  5. Inspect the rows. Expected: every record still carries its own original project — nothing was applied.
  • Spec: playwright/tests/integration/timerecord.spec.ts (describe "Timerecord - Bulk edit")