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", () => {
8585 selectedTool : mockTools [ 1 ] , // Use the tool with integer type
8686 } ) ;
8787
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" ) ;
9390 fireEvent . change ( input , { target : { value : "42" } } ) ;
9491 expect ( input . value ) . toBe ( "42" ) ;
9592
96- // Verify the callTool function receives the value as a number
9793 const submitButton = screen . getByRole ( "button" , { name : / r u n t o o l / i } ) ;
9894 fireEvent . click ( submitButton ) ;
9995
You can’t perform that action at this time.
0 commit comments