Skip to content

Commit

Permalink
Avoid navigation freezes if navigation is redirected after login
Browse files Browse the repository at this point in the history
  • Loading branch information
franrou committed Sep 27, 2024
1 parent dbcae2d commit 7da2886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loginAndNavigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = async(page, scenario, config) => {
await page.type(scenario.loginWrapperSelector + ' input[name="name"]', user);
await page.type(scenario.loginWrapperSelector + ' input[name="pass"]', pass);
await page.keyboard.press('Enter'); // Enter Key
await page.waitForNavigation({ waitUntil: 'networkidle0'});
await page.waitForNetworkIdle();

if (scenario.loginRedirectTo) {
await page.goto(scenario.loginRedirectTo, {
Expand Down

0 comments on commit 7da2886

Please sign in to comment.