523 — should compute percentage when billable clock is lower than duration¶
Description¶
Verifies that when the Billable time clock is dragged below the worked duration, the form recomputes the billable percentage correctly (3 h worked / 1 h billable → 33.33%) and that repeating the drag does not keep decrementing — the value stays put. (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, press Escape. Expected: billable duration reads 3:00 and duration reads 3:00. - Click the Billable time clock and drag −2 hours via the arrows, press Escape. Expected: billable duration is 1:00 and billable percentage is 33.33%.
- Repeat the −2 h drag once more. Expected: billable duration is still 1:00 and billable percentage is still 33.33% (no further decrement).
Related¶
- Spec:
playwright/tests/integration/timerecord.spec.ts(line 425)