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