Skip to content

470 — should start simple stopwatch, wait 5 seconds and check time record

Description

Verifies that the running stopwatch widget, when filled with a client/project/task and started for 5 real seconds, creates a billable time record visible on the calendar with the matching duration.

Preconditions

  • Signed-in owner user with a seeded client, project and task available.
  • Calendar opened in Week view on the current week with no active timer running.

Steps

  1. Open the stopwatch widget. Expected: the stopwatch form appears, idle.
  2. Select the seeded Client, Project and Task, and type an internal description.
  3. Click Start. Expected: a "created" confirmation popup appears and the stopwatch begins counting.
  4. Wait 5 seconds while the stopwatch runs. Expected: the running stopwatch displays an elapsed time consistent with 5 seconds.
  5. Click Save on the stopwatch and set the hourly rate to 200, then confirm Save.
  6. Hover the matching event on the calendar at the corresponding hour. Expected: the event tooltip shows the chosen client, project, task, start/end dates and times, duration of 5 seconds, and billable share of 100.00%.
  • Spec: playwright/tests/integration/stopwatch.spec.ts (line 85)
  • Spec: playwright/tests/integration/stopwatch.spec.ts (line 85)