mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: fix the popup test on WebKit / GTK (#384)
This commit is contained in:
parent
491eeeef7e
commit
a3e3ff73bd
@ -173,11 +173,11 @@ module.exports.describe = function({testRunner, expect, headless, playwright, FF
|
|||||||
expect(await popup.evaluate(() => !!window.opener)).toBe(false);
|
expect(await popup.evaluate(() => !!window.opener)).toBe(false);
|
||||||
});
|
});
|
||||||
// Crashes with Target closed on WebKit / Linux.
|
// Crashes with Target closed on WebKit / Linux.
|
||||||
it.skip(WEBKIT || FFOX)('should not treat navigations as new popups', async({page, server}) => {
|
it('should not treat navigations as new popups', async({page, server}) => {
|
||||||
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([
|
||||||
new Promise(x => page.once('popup', x)),
|
page.waitForEvent('popup').then(popup => { popup.waitForLoadState(); return popup; }),
|
||||||
page.click('a'),
|
page.click('a'),
|
||||||
]);
|
]);
|
||||||
let badSecondPopup = false;
|
let badSecondPopup = false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user