Skip to content

Commit b82c744

Browse files
committed
Use actual rendered element spinbutton in test
1 parent 180760c commit b82c744

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

client/src/components/__tests__/ToolsTab.test.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ describe("ToolsTab", () => {
8585
selectedTool: mockTools[1], // Use the tool with integer type
8686
});
8787

88-
const input = screen.getByRole("textbox", {
89-
name: /count/i,
90-
}) as HTMLInputElement;
88+
const input = screen.getByRole("spinbutton", { name: /count/i }) as HTMLInputElement;
9189
expect(input).toHaveProperty("type", "number");
9290
fireEvent.change(input, { target: { value: "42" } });
9391
expect(input.value).toBe("42");

0 commit comments

Comments
 (0)