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¶
- Open the stopwatch widget. Expected: the stopwatch form appears, idle.
- Select the seeded Client, Project and Task, and type an internal description.
- Click Start. Expected: a "created" confirmation popup appears and the stopwatch begins counting.
- Wait 5 seconds while the stopwatch runs. Expected: the running stopwatch displays an elapsed time consistent with 5 seconds.
- Click Save on the stopwatch and set the hourly rate to 200, then confirm Save.
- 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%.
Related¶
- Spec:
playwright/tests/integration/stopwatch.spec.ts(line 85)
Related¶
- Spec:
playwright/tests/integration/stopwatch.spec.ts(line 85)