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¶
- Click Create time record in the footer and switch to Detailed view.
- Click the Duration clock, enter
3hours0minutes 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. - Click the Billable time clock and try to nudge it up by +3 hours via the arrow controls.
- Expected: billable duration stays at 3:00 and billable percentage stays at 100% (the clock is clamped to the worked duration).
Related¶
- Spec:
playwright/tests/integration/timerecord.spec.ts(line 388)