Skip to content

473 — should fill stopwatch and then check time record

Description

Verifies that all stopwatch fields (client, project, task, internal note, client note) survive the start/save round trip and reopen correctly on the saved time record from the calendar.

Preconditions

  • Signed-in owner user with a seeded client, project and task.
  • 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. Fill in the seeded Client/Project/Task, an internal description, and a separate client-facing description.
  3. Click Start. Expected: a "created" popup appears and the stopwatch begins counting.
  4. Wait 2 seconds. Expected: the running stopwatch reflects the 2-second elapsed time.
  5. Click Save on the stopwatch, set the hourly rate to 200, and confirm Save.
  6. Double-click the matching 2-second event on the calendar to reopen it. Expected: the time-record modal opens in detailed mode and shows the same Client, Project, Task, current user as owner, internal note, client note, a 2-second duration, and the expected start/end dates and times.
  • Spec: playwright/tests/integration/stopwatch.spec.ts (line 174)
  • Spec: playwright/tests/integration/stopwatch.spec.ts (line 174)