Skip to content

475 — should edit stopwatch and set date to yesterday

Description

Verifies that editing a running stopwatch's start date back to yesterday makes the widget recalculate elapsed time so it reports exactly 1 day, 0 hours, 0 minutes.

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 click Start. Expected: a "created" popup appears and the stopwatch begins counting.
  2. Wait 5 seconds. Expected: the running stopwatch reflects the 5-second elapsed time.
  3. Click Edit on the stopwatch and switch to detailed view.
  4. Open the Start Date picker and set it to yesterday (today − 1 day).
  5. Save the stopwatch form. Expected: the stopwatch keeps running with the new start date applied.
  6. Expected: the full elapsed time now reads 1 day, 0 hours, 0 minutes, with hour value 0, minute value 0, and days value 1.
  • Spec: playwright/tests/integration/stopwatch.spec.ts (line 233)
  • Spec: playwright/tests/integration/stopwatch.spec.ts (line 233)