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¶
- Open the stopwatch widget and switch to detailed view.
- Fill in the seeded Client/Project/Task, an internal description, and a separate client-facing description.
- Click Start. Expected: a "created" popup appears and the stopwatch begins counting.
- Wait 2 seconds. Expected: the running stopwatch reflects the 2-second elapsed time.
- Click Save on the stopwatch, set the hourly rate to 200, and confirm Save.
- 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.
Related¶
- Spec:
playwright/tests/integration/stopwatch.spec.ts(line 174)
Related¶
- Spec:
playwright/tests/integration/stopwatch.spec.ts(line 174)