Skip to content

519 — should adjust start time when end date is moved before start

Description

Verifies that when the user changes the End date of an open time record to a day earlier than the current Start date, the form snaps both dates onto the picked day and preserves the original start time, end time, and duration (it does not produce a negative interval).

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. Expected: start/end dates are today, start time is "now − 1 h", end time is "now", and duration is 1:00.
  2. Click the End date picker and choose yesterday.
  3. Expected: both start date and end date display yesterday's date.
  4. Expected: start time still equals the original "now − 1 h", end time still equals the original "now", and the duration is still 1:00.
  • Spec: playwright/tests/integration/timerecord.spec.ts (line 282)