diff --git a/packages/dashboard/app/components/__tests__/WorkflowSettingsPanel.test.tsx b/packages/dashboard/app/components/__tests__/WorkflowSettingsPanel.test.tsx index 1923cc661b..d0953a8568 100644 --- a/packages/dashboard/app/components/__tests__/WorkflowSettingsPanel.test.tsx +++ b/packages/dashboard/app/components/__tests__/WorkflowSettingsPanel.test.tsx @@ -558,7 +558,7 @@ describe("WorkflowSettingsPanel — Values tab", () => { expect(screen.getByLabelText("Code Review revision cap")).toHaveValue(0); const planRow = screen.getByTestId("wf-settings-value-planReviewMaxRevisions"); - fireEvent.click(within(planRow).getByRole("button")); + fireEvent.click(within(planRow).getByRole("button", { name: "Reset to default" })); fireEvent.click(screen.getByTestId("wf-settings-save-values")); await waitFor(() => expect(mockUpdateValues).toHaveBeenLastCalledWith( "wf-1",