Skip to content

640 — Bulk replace labels on selected time records

Description

Verifies that bulk-editing the Labels field with the Replace action sets the chosen labels on every selected record (overwriting whatever labels they had before).

Preconditions

  • Signed in to a freshly seeded test organization.
  • Three labels (label1, label2, label3) already exist.
  • Three time records seeded via the GraphQL API (no labels initially).
  • 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 LabelsReplace and pick label1 and label2.
  4. Click Save. Expected: "Success" popup appears.
  5. Inspect all three rows. Expected: the Labels column shows label1 and label2 on all three rows.
  • Spec: playwright/tests/integration/timerecord.spec.ts (describe "Timerecord - Bulk edit")