Skip to content

552 — should lock records that fall on or before the lock date

Description

Verifies the Lock time setting: once a lock date with automatic weekly update is configured for today at 10:30, every time record dated on or before today becomes read-only (locked), while a record dated tomorrow stays editable.

Preconditions

  • Signed in to a seeded test organization.
  • Time tracking settings open on the General tab.
  • Three records seeded: yesterday 14:30–19:00 (TR01), today 08:30–18:30 (TR02), tomorrow 08:30–18:30 (TR03).

Steps

  1. Toggle Lock time ON, click the Time field, set 10 h 30 min via the inputs, press Escape.
  2. Toggle Automatic lock update ON, set Interval = Weekly, Every = Tuesday, and set the "Every time" to 10 h 30 min.
  3. Click Save. Expected: "Updated" popup appears.
  4. Navigate to Time records → Table view and open the Year date filter (so all three records are visible).
  5. Open the row at index 0 (tomorrow). Expected: the record modal shows it is unlocked for the lock date "today"; close the modal.
  6. Open the row at index 1 (today). Expected: the record is locked for that lock date; close.
  7. Open the row at index 2 (yesterday). Expected: the record is locked for that lock date; close.
  • Spec: playwright/tests/integration/timerecord.spec.ts (line 1195)