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