Skip to content

522 — should clamp billable clock to duration when set higher

Description

Verifies that the Billable time clock cannot exceed the worked duration: after extending the duration to 3:00, trying to drag the billable clock to 3+ hours clamps it back to 3:00 (100%). (Reports view.)

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.
  2. Click the Duration clock, enter 3 hours 0 minutes via the inputs, and press Escape. Expected: billable duration reads 3:00 and duration reads 3:00; start time stays "now − 1 h" and end time shifts by +2 h.
  3. Click the Billable time clock and try to nudge it up by +3 hours via the arrow controls.
  4. Expected: billable duration stays at 3:00 and billable percentage stays at 100% (the clock is clamped to the worked duration).
  • Spec: playwright/tests/integration/timerecord.spec.ts (line 388)