Skip to content

476 — should edit stopwatch and set date to 2 days ago, and hours/minutes by 4

Description

Verifies that setting the stopwatch's start date 2 days back and shifting the start time back by 4 hours and 4 minutes before starting yields the expected backdated elapsed duration.

Preconditions

  • Signed-in owner user.
  • Calendar opened in Week view on the current week with no active timer running.

Steps

  1. Open the stopwatch widget and switch to detailed view.
  2. Compute the target start as one datetime: now − 2 days − 4 hours − 4 minutes (when the time offset crosses midnight, the calendar day is 3 days back — the date and time must come from the same rolled datetime, see issue #1332).
  3. Open the Start Date picker and pick the target's calendar day.
  4. Open the Start Time picker and set the target's time, then close it.
  5. Click Start. Expected: a "created" popup appears and the stopwatch begins counting from the backdated start.
  6. Expected: the full elapsed time reads 2 days, 4 hours, 4 minutes, with hour value 4, minute value 4, and days value 2 — at any run time of day.
  • Spec: playwright/tests/integration/stopwatch.spec.ts (line 260)
  • Page objects: datepicker.component.ts (calculateDateTimeWithOffset, setTime, setDatepicker), stopwatch.component.ts