Skip to content

472 — should start simple stopwatch, wait 70 seconds and check time record

Description

Verifies that a stopwatch that runs across the 1-minute boundary (70 real seconds) rounds up to a 2-minute time record on the calendar with the correct billable share.

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, select the seeded Client/Project/Task and type an internal description.
  2. Click Start. Expected: a "created" popup appears and the stopwatch begins counting.
  3. Wait 70 real seconds. Expected: the running stopwatch reflects the ~70 seconds of elapsed time.
  4. Click Save on the stopwatch, set the hourly rate to 200, then confirm Save.
  5. Hover the resulting event on the calendar at the matching hour. Expected: the tooltip shows the chosen client/project/task, start and end times that span 120 seconds (2 minutes), the 70-second elapsed duration, and a billable share of 100.00%.
  • Spec: playwright/tests/integration/stopwatch.spec.ts (line 139)
  • Spec: playwright/tests/integration/stopwatch.spec.ts (line 139)