Skip to content

512 — should create new simple time record

Description

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

Preconditions

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

Steps

  1. Click the Create time record button in the footer.
  2. Toggle the Billable switch off.
  3. Read the auto-populated duration value (default 1 h) and remember the start/end timestamps shown.
  4. Attach all three seeded labels to the record.
  5. Click Create. Expected: "Created" confirmation popup appears.
  6. Inspect the first row in the table. Expected: start date matches the captured value, end date matches the captured value, duration equals the captured duration, user equals the signed-in owner, Client/Project/Task all show "-", Cost shows "€ 0.00", Billable time shows "00:00", Billable cost shows "€ 0.00", and Labels show label1, label2, label3.
  • Spec: playwright/tests/integration/timerecord.spec.ts (line 82)