Skip to content

521 — should set duration to 2h 5min via clock element

Description

Verifies that typing 2 h 5 min into the Duration clock control of an open time record (Reports view) keeps the start time anchored and shifts the end time to start + 2:05, with the worked duration and billable duration both reading 2:05 (and the end date rolling to the next day if the new end crosses midnight).

Preconditions

  • Signed in to a seeded test organization.
  • Time Records page open in the Reports view.

Steps

  1. Click Create time record in the footer and switch to Detailed view. Expected: duration is 1:00, start time is "now − 1 h", end time is "now".
  2. Click the Duration clock and enter 2 hours and 5 minutes via the inputs, then press Escape.
  3. Expected: billable duration reads 2:05.
  4. Expected: start date is today, end date is today (or tomorrow if start + 2:05 crosses midnight), start time still equals "now − 1 h", end time equals start time + 2:05, and both duration and billable duration read 2:05.
  • Spec: playwright/tests/integration/timerecord.spec.ts (line 344)