FN-8101: disambiguate workflow revision reset test selector

Target the named reset control in the workflow review-cap test.

- Select the Reset to default button by accessible name
- Prevent ambiguity when multiple row buttons are rendered

Files changed:
 packages/dashboard/app/components/__tests__/WorkflowSettingsPanel.test.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Fusion-Task-Id: FN-8101

Fusion-Task-Lineage: e822941f-eab0-4d7a-a27b-53c152aac5de

Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
This commit is contained in:
gsxdsm
2026-07-16 08:47:20 -07:00
parent 291fabcce8
commit 40aa924ec0

View File

@@ -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",