@@ -102,7 +102,7 @@ describe('OtpAuth', () => {
102102
103103 describe ( 'Component Rendering' , ( ) => {
104104 test ( 'renders OTP form with all elements' , ( ) => {
105- renderWithProviders ( < WrapperComponent /> )
105+ renderWithProviders ( < WrapperComponent resendCooldownDuration = { 0 } /> )
106106
107107 expect ( screen . getByText ( "Confirm it's you" ) ) . toBeInTheDocument ( )
108108 expect (
@@ -127,7 +127,7 @@ describe('OtpAuth', () => {
127127 } )
128128
129129 test ( 'renders buttons with correct styling' , ( ) => {
130- renderWithProviders ( < WrapperComponent /> )
130+ renderWithProviders ( < WrapperComponent resendCooldownDuration = { 0 } /> )
131131
132132 const guestButton = screen . getByRole ( 'button' , { name : / C h e c k o u t a s a G u e s t / i} )
133133 const resendButton = screen . getByRole ( 'button' , { name : / R e s e n d C o d e / i} )
@@ -623,7 +623,7 @@ describe('OtpAuth', () => {
623623 } )
624624
625625 test ( 'buttons have accessible text' , ( ) => {
626- renderWithProviders ( < WrapperComponent /> )
626+ renderWithProviders ( < WrapperComponent resendCooldownDuration = { 0 } /> )
627627
628628 expect ( screen . getByRole ( 'button' , { name : / C h e c k o u t a s a G u e s t / i} ) ) . toBeInTheDocument ( )
629629 expect ( screen . getByRole ( 'button' , { name : / R e s e n d C o d e / i} ) ) . toBeInTheDocument ( )
0 commit comments