Skip to content

548 — should require client when updating an existing time record

Description

Verifies that turning Client required AFTER a time record already exists also enforces the rule retroactively — saving an edit to that pre-existing record without a client raises the same required-field error.

Preconditions

  • Signed in to a seeded test organization.
  • Time tracking settings open on the Required fields tab.

Steps

  1. Open Create time record from the footer, toggle Billable off, and click Create. Expected: "Created" popup appears.
  2. Back on Required fields, toggle Client ON. Expected: the "this will become required" popup appears.
  3. Navigate to Time tracking → Time records → Table view and double-click the existing record.
  4. Type "test" into the Client description (any safe edit), then click Save.
  5. Expected: the form blocks the save and shows a required-field error on the Client field; no other fields are flagged.
  • Spec: playwright/tests/integration/timerecord.spec.ts (line 1119)