Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: unflake owner frame test (#760)

Yury Semikhatskyeb568046ebe8
diff --git a/test/elementhandle.spec.js b/test/elementhandle.spec.js
index d45a8bd424..bb876e9a85 100644
--- a/test/elementhandle.spec.js
+++ b/test/elementhandle.spec.js
@@ -158,7 +158,7 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT})
it.skip(FFOX)('should work for adopted elements', async({page,server}) => {
await page.goto(server.EMPTY_PAGE);
const [popup] = await Promise.all([
- page.waitForEvent('popup'),
+ page.waitForEvent('popup').then(async popup => { await popup.waitForLoadState(); return popup; }),
page.evaluate(url => window.__popup = window.open(url), server.EMPTY_PAGE),
]);
const divHandle = await page.evaluateHandle(() => {