Skip to content

529 — 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 billable duration to 3:00, and that setting the billable percentage to 50% then halves the billable duration to 1:30 while leaving the worked duration unchanged. (Table view.)

Preconditions

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

Steps

  1. Click Create time record and switch to Detailed view. Expected: duration 1:00, start time "now − 1 h", end time "now".
  2. Click End time and bump it by +2 hours via the arrows, press Escape. Expected: duration is 3:00, billable duration is 3:00, both dates are today, start time still equals "now − 1 h", end time equals the original end + 2 h.
  3. Set Billable percentage to "50" and press Escape. Expected: billable duration is 1:30 (worked duration stays 3:00).
  • Spec: playwright/tests/integration/timerecord.spec.ts (line 577)