518 — should create new time record and fill all values¶
Description¶
Verifies that a fully populated time record (Reports view) — client, project, task, assigned user, internal note, client note — is saved correctly, that the table row shows all values plus a computed cost and 100% billable time, and that reopening the modal still displays every field including the original start/end timestamps and 100% billable percentage.
Preconditions¶
- Signed in to a seeded test organization.
- Time Records page open in the Reports view.
- Seeded client, project, task, and one employee with an hourly rate (from the stopwatch fixture).
Steps¶
- Click Create time record in the footer, switch to Detailed view, and remember the prefilled 1 h duration and start/end timestamps.
- Set Client, Project, Task, User (the seeded employee), and fill Internal description and Client description with random sentences.
- Click Create. Expected: "Created" popup appears and the table row shows the captured start/end dates, the 1 h duration, the chosen user/client/project/task, a non-zero money-shaped Cost, a Billable time equal to the duration, and a non-zero money-shaped Billable cost.
- Open the new record via double-click. Expected: the modal shows the saved client, project, task, assigned user, both notes, the original start/end date and time, duration 1:00, billable duration 1:00, and billable percentage 100%.
Related¶
- Spec:
playwright/tests/integration/timerecord.spec.ts(line 219)