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¶
- Click Create time record in the toolbar.
- Toggle the Billable switch off.
- Attach all three seeded labels.
- Read the auto-populated duration value (1 h) and remember the prefilled start/end timestamps.
- Click Create. Expected: "Created" popup appears.
- 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 "-".
Related¶
- Spec:
playwright/tests/integration/timerecord.spec.ts(line 476)