mirror of
https://github.com/microsoft/playwright.git
synced 2024-08-17 08:00:23 +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.goto(server.EMPTY_PAGE);
|
||||||
await page.setContent('<a target=_blank rel=noopener href="/one-style.html">yo</a>');
|
await page.setContent('<a target=_blank rel=noopener href="/one-style.html">yo</a>');
|
||||||
const [popup] = await Promise.all([
|
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'),
|
page.click('a'),
|
||||||
]);
|
]);
|
||||||
let badSecondPopup = false;
|
let badSecondPopup = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user