@@ -25,9 +25,8 @@ testAgainstRunningApps({ withEnv: [appConfigs.envs.withEmailCodes] })('Next.js S
2525 password : fakeUser . password ,
2626 } ) ;
2727
28- await u . po . signUp . fillTestOtpCode ( 'Enter email verification code' ) ;
29- await page . waitForTimeout ( 2000 ) ;
30- // TODO: In original test the input has autoSubmit and this step is not needed. Not used right now because it didn't work.
28+ await page . getByRole ( 'textbox' , { name : 'Enter email verification code' } ) . click ( ) ;
29+ await page . keyboard . type ( '424242' , { delay : 100 } ) ;
3130 await u . po . signUp . continue ( ) ;
3231
3332 await u . page . waitForAppUrl ( '/' ) ;
@@ -54,9 +53,8 @@ testAgainstRunningApps({ withEnv: [appConfigs.envs.withEmailCodes] })('Next.js S
5453 password : fakeUser . password ,
5554 } ) ;
5655
57- await u . po . signUp . fillTestOtpCode ( 'Enter email verification code' ) ;
58- await page . waitForTimeout ( 2000 ) ;
59- // TODO: In original test the input has autoSubmit and this step is not needed. Not used right now because it didn't work.
56+ await page . getByRole ( 'textbox' , { name : 'Enter email verification code' } ) . click ( ) ;
57+ await page . keyboard . type ( '424242' , { delay : 100 } ) ;
6058 await u . po . signUp . continue ( ) ;
6159
6260 await u . page . waitForAppUrl ( '/' ) ;
@@ -104,14 +102,12 @@ testAgainstRunningApps({ withEnv: [appConfigs.envs.withEmailCodes] })('Next.js S
104102 password : fakeUser . password ,
105103 } ) ;
106104
107- await u . po . signUp . fillTestOtpCode ( 'Enter phone verification code' ) ;
108- await page . waitForTimeout ( 2000 ) ;
109- // TODO: In original test the input has autoSubmit and this step is not needed. Not used right now because it didn't work.
105+ await page . getByRole ( 'textbox' , { name : 'Enter phone verification code' } ) . click ( ) ;
106+ await page . keyboard . type ( '424242' , { delay : 100 } ) ;
110107 await u . po . signUp . continue ( ) ;
111- await page . waitForTimeout ( 2000 ) ;
112- await u . po . signUp . fillTestOtpCode ( 'Enter email verification code' ) ;
113- await page . waitForTimeout ( 2000 ) ;
114- // TODO: In original test the input has autoSubmit and this step is not needed. Not used right now because it didn't work.
108+
109+ await page . getByRole ( 'textbox' , { name : 'Enter email verification code' } ) . click ( ) ;
110+ await page . keyboard . type ( '424242' , { delay : 100 } ) ;
115111 await u . po . signUp . continue ( ) ;
116112
117113 await u . po . expect . toBeSignedIn ( ) ;
@@ -135,13 +131,12 @@ testAgainstRunningApps({ withEnv: [appConfigs.envs.withEmailCodes] })('Next.js S
135131 password : fakeUser . password ,
136132 } ) ;
137133
138- await u . po . signUp . fillTestOtpCode ( 'Enter phone verification code' ) ;
139- await page . waitForTimeout ( 2000 ) ;
140- // TODO: In original test the input has autoSubmit and this step is not needed. Not used right now because it didn't work.
134+ await page . getByRole ( 'textbox' , { name : 'Enter phone verification code' } ) . click ( ) ;
135+ await page . keyboard . type ( '424242' , { delay : 100 } ) ;
141136 await u . po . signUp . continue ( ) ;
142- await u . po . signUp . fillTestOtpCode ( 'Enter email verification code' ) ;
143- await page . waitForTimeout ( 2000 ) ;
144- // TODO: In original test the input has autoSubmit and this step is not needed. Not used right now because it didn't work.
137+
138+ await page . getByRole ( 'textbox' , { name : 'Enter email verification code' } ) . click ( ) ;
139+ await page . keyboard . type ( '424242' , { delay : 100 } ) ;
145140 await u . po . signUp . continue ( ) ;
146141
147142 await u . po . expect . toBeSignedIn ( ) ;
@@ -166,13 +161,12 @@ testAgainstRunningApps({ withEnv: [appConfigs.envs.withEmailCodes] })('Next.js S
166161 password : fakeUser . password ,
167162 } ) ;
168163
169- await u . po . signUp . fillTestOtpCode ( 'Enter phone verification code' ) ;
170- await page . waitForTimeout ( 2000 ) ;
171- // TODO: In original test the input has autoSubmit and this step is not needed. Not used right now because it didn't work.
164+ await page . getByRole ( 'textbox' , { name : 'Enter phone verification code' } ) . click ( ) ;
165+ await page . keyboard . type ( '424242' , { delay : 100 } ) ;
172166 await u . po . signUp . continue ( ) ;
173- await u . po . signUp . fillTestOtpCode ( 'Enter email verification code' ) ;
174- await page . waitForTimeout ( 2000 ) ;
175- // TODO: In original test the input has autoSubmit and this step is not needed. Not used right now because it didn't work.
167+
168+ await page . getByRole ( 'textbox' , { name : 'Enter email verification code' } ) . click ( ) ;
169+ await page . keyboard . type ( '424242' , { delay : 100 } ) ;
176170 await u . po . signUp . continue ( ) ;
177171
178172 await u . po . expect . toBeSignedIn ( ) ;
0 commit comments