546 — should require ${c.title} on new time record¶
Description¶
Verifies the Required fields setting on Time tracking: toggling one of (Client, Project, Task, Label, Internal note, Client note) ON makes that field mandatory, surfaces the "this will become required" confirmation popup (except for Label), and causes the new time record form to display a validation error on that field when the user tries to save it empty.
Preconditions¶
- Signed in to a seeded test organization.
- Time tracking settings open on the Required fields tab.
- Breadcrumbs read "Required fields".
Steps¶
- Toggle the required setting under test ON (Client, Project, Task — set Project ON first, Label, Internal note, or Client note). Expected: for every toggle except Label, the "this will become required" confirmation popup appears.
- Open Create time record from the footer and switch to Detailed view.
- For the Task variant, first pick a Project in the form so the Task field becomes visible.
- Click Create without filling the required field.
- Expected: the form shows a required-field validation error on the field under test and no other field is flagged.
Related¶
- Spec:
playwright/tests/integration/timerecord.spec.ts(line 1085)