Skip to content

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

  1. Click Create time record in the footer, switch to Detailed view, and remember the prefilled 1 h duration and start/end timestamps.
  2. Set Client, Project, Task, User (the seeded employee), and fill Internal description and Client description with random sentences.
  3. 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.
  4. 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%.
  • Spec: playwright/tests/integration/timerecord.spec.ts (line 219)