@@ -274,7 +274,7 @@ describe("<SignUpAuthForm />", () => {
274274
275275 // Make sure we have an email and password input with translated labels
276276 expect ( screen . getByRole ( "textbox" , { name : / e m a i l A d d r e s s / } ) ) . toBeInTheDocument ( ) ;
277- expect ( screen . getByRole ( "textbox" , { name : / p a s s w o r d / } ) ) . toBeInTheDocument ( ) ;
277+ expect ( screen . getByLabelText ( / p a s s w o r d / ) ) . toBeInTheDocument ( ) ;
278278
279279 // Ensure the "Create Account" button is present and is a submit button
280280 const createAccountButton = screen . getByRole ( "button" , { name : "createAccount" } ) ;
@@ -365,7 +365,7 @@ describe("<SignUpAuthForm />", () => {
365365
366366 // Make sure we have all three inputs with translated labels
367367 expect ( screen . getByRole ( "textbox" , { name : / e m a i l A d d r e s s / } ) ) . toBeInTheDocument ( ) ;
368- expect ( screen . getByRole ( "textbox" , { name : / p a s s w o r d / } ) ) . toBeInTheDocument ( ) ;
368+ expect ( screen . getByLabelText ( / p a s s w o r d / ) ) . toBeInTheDocument ( ) ;
369369 expect ( screen . getByRole ( "textbox" , { name : / d i s p l a y N a m e / } ) ) . toBeInTheDocument ( ) ;
370370
371371 // Ensure the "Create Account" button is present and is a submit button
@@ -397,7 +397,7 @@ describe("<SignUpAuthForm />", () => {
397397 expect ( form . length ) . toBe ( 1 ) ;
398398
399399 expect ( screen . getByRole ( "textbox" , { name : / e m a i l / } ) ) . toBeInTheDocument ( ) ;
400- expect ( screen . getByRole ( "textbox" , { name : / p a s s w o r d / } ) ) . toBeInTheDocument ( ) ;
400+ expect ( screen . getByLabelText ( / p a s s w o r d / ) ) . toBeInTheDocument ( ) ;
401401 expect ( screen . queryByRole ( "textbox" , { name : / d i s p l a y N a m e / } ) ) . not . toBeInTheDocument ( ) ;
402402 } ) ;
403403
0 commit comments