Skip to content

471 — should start stopwatch, wait 5 seconds and check time record with billable off

Description

Verifies that toggling Billable off on the stopwatch and adding three labels produces a non-billable (0%) time record on the calendar after running for 5 seconds.

Preconditions

  • Signed-in owner user with three pre-created labels available.
  • Calendar opened in Week view on the current week with no active timer running.

Steps

  1. Open the stopwatch widget and switch to its detailed view. Expected: the extended stopwatch form is shown.
  2. Toggle the Billable switch off and apply three labels (label1, label2, label3).
  3. Click Start. Expected: a "created" confirmation popup appears and the stopwatch starts running.
  4. Wait 5 seconds. Expected: the running stopwatch shows the elapsed 5-second duration.
  5. Click Save on the stopwatch. Expected: the save modal still carries the three labels.
  6. Confirm Save and hover the matching event on the calendar. Expected: the tooltip shows the start/end dates/times, a 5-second duration, and billable share of 0%.
  • Spec: playwright/tests/integration/stopwatch.spec.ts (line 114)
  • Spec: playwright/tests/integration/stopwatch.spec.ts (line 114)