@@ -193,7 +193,7 @@ describe("<SignInAuthForm />", () => {
193193
194194 // Make sure we have an email and password input
195195 expect ( screen . getByRole ( "textbox" , { name : / e m a i l / i } ) ) . toBeInTheDocument ( ) ;
196- expect ( screen . getByRole ( "textbox" , { name : / p a s s w o r d / i } ) ) . toBeInTheDocument ( ) ;
196+ expect ( screen . getByLabelText ( / p a s s w o r d / i) ) . toBeInTheDocument ( ) ;
197197
198198 // Ensure the "Sign In" button is present and is a submit button
199199 const signInButton = screen . getByRole ( "button" , { name : "signIn" } ) ;
@@ -229,23 +229,23 @@ describe("<SignInAuthForm />", () => {
229229 expect ( onForgotPasswordClickMock ) . toHaveBeenCalled ( ) ;
230230 } ) ;
231231
232- it ( "should render the register button callback when onRegisterClick is provided" , ( ) => {
232+ it ( "should render the register button callback when onSignUpClick is provided" , ( ) => {
233233 const mockUI = createMockUI ( {
234234 locale : registerLocale ( "test" , {
235235 prompts : {
236236 noAccount : "foo" ,
237237 } ,
238238 labels : {
239- register : "bar" ,
239+ signUp : "bar" ,
240240 } ,
241241 } ) ,
242242 } ) ;
243243
244- const onRegisterClickMock = vi . fn ( ) ;
244+ const onSignUpClick = vi . fn ( ) ;
245245
246246 render (
247247 < FirebaseUIProvider ui = { mockUI } >
248- < SignInAuthForm onRegisterClick = { onRegisterClickMock } />
248+ < SignInAuthForm onSignUpClick = { onSignUpClick } />
249249 </ FirebaseUIProvider >
250250 ) ;
251251
@@ -259,7 +259,7 @@ describe("<SignInAuthForm />", () => {
259259 expect ( registerButton ) . toHaveAttribute ( "type" , "button" ) ;
260260
261261 fireEvent . click ( registerButton ) ;
262- expect ( onRegisterClickMock ) . toHaveBeenCalled ( ) ;
262+ expect ( onSignUpClick ) . toHaveBeenCalled ( ) ;
263263 } ) ;
264264
265265 it ( "should trigger validation errors when the form is blurred" , ( ) => {
0 commit comments