File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
client/src/components/__tests__ Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -85,15 +85,11 @@ describe("ToolsTab", () => {
85
85
selectedTool : mockTools [ 1 ] , // Use the tool with integer type
86
86
} ) ;
87
87
88
- // Verify input is rendered as a number input
89
- const input = screen . getByRole ( "spinbutton" ) as HTMLInputElement ;
90
- expect ( input . type ) . toBe ( "number" ) ; // Integer type should be treated as number
91
-
92
- // Enter an integer value
88
+ const input = screen . getByRole ( "textbox" , { name : / c o u n t / i } ) as HTMLInputElement ;
89
+ expect ( input ) . toHaveProperty ( "type" , "number" ) ;
93
90
fireEvent . change ( input , { target : { value : "42" } } ) ;
94
91
expect ( input . value ) . toBe ( "42" ) ;
95
92
96
- // Verify the callTool function receives the value as a number
97
93
const submitButton = screen . getByRole ( "button" , { name : / r u n t o o l / i } ) ;
98
94
fireEvent . click ( submitButton ) ;
99
95
You can’t perform that action at this time.
0 commit comments