@@ -62,6 +62,7 @@ describe(' Integration tests: Mfa TOTP', () => {
62
62
auth = getTestInstance ( ) ;
63
63
64
64
displayName = 'totp-integration-test' ;
65
+
65
66
// signUpCred = await createUserWithEmailAndPassword(
66
67
67
68
// auth,
@@ -181,7 +182,8 @@ describe(' Integration tests: Mfa TOTP', () => {
181
182
console . log ( email ) ;
182
183
console . log ( 'session info for: ' , getApp ( ) . options . projectId ) ;
183
184
184
- await delay ( 15 * 1000 ) ;
185
+ // Added a delay so that getTotpCode() actually generates a new totp code
186
+ await delay ( 30 * 1000 ) ;
185
187
try {
186
188
187
189
const userCredential = await signInWithEmailAndPassword ( auth , email , 'password' ) ;
@@ -217,7 +219,7 @@ describe(' Integration tests: Mfa TOTP', () => {
217
219
}
218
220
219
221
220
- } )
222
+ } ) . timeout ( 31000 ) ;
221
223
222
224
it ( 'should allow sign-in with for correct totp and unenroll successfully' , async ( ) => {
223
225
@@ -226,7 +228,8 @@ describe(' Integration tests: Mfa TOTP', () => {
226
228
console . log ( email ) ;
227
229
console . log ( 'session info for: ' , getApp ( ) . options . projectId ) ;
228
230
229
- await delay ( 15 * 1000 ) ;
231
+ // Added a delay so that getTotpCode() actually generates a new totp code
232
+ await delay ( 30 * 1000 ) ;
230
233
try {
231
234
232
235
const userCredential = await signInWithEmailAndPassword ( auth , email , 'password' ) ;
@@ -263,5 +266,5 @@ describe(' Integration tests: Mfa TOTP', () => {
263
266
await auth . signOut ( ) ;
264
267
265
268
}
266
- } )
269
+ } ) . timeout ( 31000 ) ;
267
270
} )
0 commit comments