@@ -32,6 +32,7 @@ test.describe('network blocking flows', () => {
3232
3333 const email = TestDataFactory . generateEmail ( ) ;
3434 const postLoginPage = await signupPage . submit ( email , TestDataFactory . phoneNumber , TestDataFactory . password ) ;
35+ await postLoginPage . awaitPage ( ) ;
3536 const profilePage = await postLoginPage . continue ( true ) ;
3637 await profilePage . awaitPage ( ) ;
3738
@@ -78,13 +79,15 @@ test.describe('network blocking flows', () => {
7879 await networkBlocker . appendStart ( ) ;
7980 const loginPage2 = await profilePage . logout ( ) ;
8081 await loginPage2 . loginWithIdentifierAndPasswordIdentifierFirst ( email , TestDataFactory . password ) ;
82+ expect ( await loginPage2 . awaitState ( LoginStatus . FallbackSecondTOTP ) ) . toBeTruthy ( ) ;
8183 const codeFirst = await authenticator . getCode ( sharedKey ) ;
8284 const postLoginPage2 = await loginPage2 . completeLoginWithTOTP ( codeFirst ! ) ;
8385 await postLoginPage2 . autoSkip ( ) . awaitPage ( ) ;
8486
8587 await networkBlocker . appendFinish ( ) ;
8688 const loginPage3 = await profilePage . logout ( ) ;
8789 await loginPage3 . loginWithIdentifierAndPasswordIdentifierFirst ( email , TestDataFactory . password ) ;
90+ expect ( await loginPage2 . awaitState ( LoginStatus . FallbackSecondTOTP ) ) . toBeTruthy ( ) ;
8891 const codeSecond = await authenticator . getCode ( sharedKey ) ;
8992 const postLoginPage3 = await loginPage3 . completeLoginWithTOTP ( codeSecond ! ) ;
9093 await postLoginPage3 . autoSkip ( ) . awaitPage ( ) ;
@@ -100,6 +103,7 @@ test.describe('network blocking flows', () => {
100103
101104 const email = TestDataFactory . generateEmail ( ) ;
102105 const postLoginPage = await signupPage . submit ( email , TestDataFactory . phoneNumber , TestDataFactory . password ) ;
106+ await postLoginPage . awaitPage ( ) ;
103107 const profilePage = await postLoginPage . continue ( true ) ;
104108 await profilePage . awaitPage ( ) ;
105109 expect ( await profilePage . awaitState ( ProfileStatus . ListWithPasskeys ) ) . toBeTruthy ( ) ;
0 commit comments