File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export class BasePage {
1313 async goto ( url : string , options ?: GotoOptions ) : Promise < void > {
1414 const _url = new URL ( url , BASE_ORIGIN ) . toString ( )
1515 await report . step ( `Go to "${ url } "` , async ( ) => {
16- await this . page . goto ( _url , { waitUntil : 'networkidle' , ... options } )
16+ await this . page . goto ( _url , options )
1717 } )
1818 }
1919
Original file line number Diff line number Diff line change @@ -29,6 +29,6 @@ export class LoginPage extends BasePage {
2929 await this . loginTxtFld . fill ( credentials . email )
3030 await this . passwordTxtFld . fill ( credentials . password )
3131 await this . signInBtn . click ( )
32- await this . page . waitForLoadState ( 'networkidle' )
32+ await this . page . waitForLoadState ( )
3333 }
3434}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export async function saveSsFileByLocalViaBrowser(credentials: Credentials): Pro
3030 await page . goto ( `${ BASE_ORIGIN } /login` )
3131 const loginPage = new LoginPage ( page )
3232 await loginPage . signIn ( credentials )
33- await page . waitForLoadState ( 'networkidle' )
33+ await page . waitForLoadState ( )
3434 await page . context ( ) . storageState ( { path : `${ SS_PATH_PREFIX } ${ BASE_URL . hostname } -${ credentials . email } .json` } )
3535 await browser . close ( )
3636
@@ -46,7 +46,7 @@ export async function saveSsFileBySsoViaBrowser(credentials: Credentials): Promi
4646 headless : ! ! process . env . CI ,
4747 } )
4848 const page = await newPage ( browser , credentials )
49- await page . goto ( BASE_ORIGIN , { waitUntil : 'networkidle' , timeout : PAGE_LOADING } )
49+ await page . goto ( BASE_ORIGIN , { timeout : PAGE_LOADING } )
5050 for ( let i = 0 ; i < 10 ; i ++ ) {
5151 const ss = await page . context ( ) . storageState ( )
5252 if ( ss . cookies . length !== 0 && ss . origins . length !== 0 ) {
You can’t perform that action at this time.
0 commit comments