Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: fix the popup test on WebKit / GTK (#384)
Pavel Feldmana3e3ff73bde7
diff --git a/test/page.spec.js b/test/page.spec.jsindex ce6c7398e2..5713371f3b 100644--- a/test/page.spec.js+++ b/test/page.spec.js@@ -173,11 +173,11 @@ module.exports.describe = function({testRunner, expect, headless, playwright, FFexpect(await popup.evaluate(() => !!window.opener)).toBe(false);});// 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.setContent('<a target=_blank rel=noopener href="/one-style.html">yo</a>');const [popup] = await Promise.all([- new Promise(x => page.once('popup', x)),+ page.waitForEvent('popup').then(popup => { popup.waitForLoadState(); return popup; }),page.click('a'),]);let badSecondPopup = false;