517 — should chain client/project/task and clear ${c.field}¶
Description¶
Verifies the Client / Project / Task field cascade in the time record form: setting all three populates them correctly, and clearing one of them propagates the right cleanup to the dependent fields (clearing Client wipes Project and Task; clearing Project wipes Task and hides the Task field; clearing Task leaves Client and Project intact).
Preconditions¶
- Signed in to a seeded test organization.
- Time Records page open in the Reports view.
- Seeded client, project, and task (from the stopwatch fixture).
Steps¶
- Click Create time record in the footer.
- Set Client to the seeded client, Project to the seeded project, and Task to the seeded task. Expected: all three fields display the chosen values.
- Click the clear (×) button on the field under test (Client, Project, or Task).
- Expected:
- When clearing Client: Client is empty, Project is empty, and the Task field is hidden.
- When clearing Project: Client still shows the seeded client, Project is empty, and the Task field is hidden.
- When clearing Task: Client still shows the seeded client, Project still shows the seeded project, and Task is empty but still visible.
Related¶
- Spec:
playwright/tests/integration/timerecord.spec.ts(line 200)