mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 13:45:36 +03:00
fix: await the popup nav to make the test pass (#391)
This commit is contained in:
parent
85985155d0
commit
e826a4d3f4
@ -177,7 +177,7 @@ module.exports.describe = function({testRunner, expect, headless, playwright, FF
|
||||
await page.goto(server.EMPTY_PAGE);
|
||||
await page.setContent('<a target=_blank rel=noopener href="/one-style.html">yo</a>');
|
||||
const [popup] = await Promise.all([
|
||||
page.waitForEvent('popup').then(popup => { popup.waitForLoadState(); return popup; }),
|
||||
page.waitForEvent('popup').then(async popup => { await popup.waitForLoadState(); return popup; }),
|
||||
page.click('a'),
|
||||
]);
|
||||
let badSecondPopup = false;
|
||||
|
Loading…
Reference in New Issue
Block a user