Skip to content

477 — should show warning when I set time in the future

Description

Verifies that the stopwatch refuses to start when the start time is set in the future and surfaces validation errors on both the date and time fields.

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. Open the Start Time picker and shift the time forward by 1 hour (0 minutes), then close it.
  3. Click Start. Expected: the stopwatch does not start running.
  4. Expected: the Start Date field shows a validation error indicating the start cannot be in the future.
  5. Expected: the Start Time field shows the corresponding future-time validation error.
  • Spec: playwright/tests/integration/stopwatch.spec.ts (line 282)
  • Spec: playwright/tests/integration/stopwatch.spec.ts (line 282)