Skip to content

524 — should create new simple time record

Description

Verifies that a user can create a brand-new time record from the Table view with billable turned off and three labels attached, and that the resulting row shows the right start/end dates, duration, empty client/project/task placeholders, the chosen labels, dashed descriptions, zero billable time, and a dashed billable cost.

Preconditions

  • Signed in to a seeded test organization.
  • Time Records page open in the Table view.
  • Three labels (label1, label2, label3) already exist.

Steps

  1. Click Create time record in the toolbar.
  2. Toggle the Billable switch off.
  3. Attach all three seeded labels.
  4. Read the auto-populated duration value (1 h) and remember the prefilled start/end timestamps.
  5. Click Create. Expected: "Created" popup appears.
  6. Inspect the new row. Expected: start date matches the captured start, end date matches the captured end, duration equals the captured duration, Client/Project/Task all show "-", Labels show label1, label2, label3, Internal and Client descriptions both show "-", Billable time is "00:00", and Billable cost is "-".
  • Spec: playwright/tests/integration/timerecord.spec.ts (line 476)