520 — should set end +2h then halve billable percentage¶
Description¶
Verifies that extending the End time of an open time record by +2 hours raises the duration to 3:00 and the billable duration to 3:00, and that subsequently setting the billable percentage to 50% halves the billable duration to 1:30 while leaving the worked duration unchanged. (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. Expected: duration is 1:00, start time is "now − 1 h", end time is "now".
- Click the End time field and bump it by +2 hours via the arrow controls, then press Escape.
- Expected: duration is 3:00, billable duration is 3:00, both dates are today, start time still equals "now − 1 h", and end time equals the original end time + 2 h.
- Set Billable percentage to "50" and press Escape.
- Expected: billable duration is 1:30 (worked duration stays at 3:00).
Related¶
- Spec:
playwright/tests/integration/timerecord.spec.ts(line 310)