Skip to content

Commit 1107d0e

Browse files
committed
wait for popup load state before checking url
1 parent 8da272a commit 1107d0e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/chromium/chromium.spec.js

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ module.exports.describe = function({testRunner, expect, playwright, FFOX, CHROMI
109109
new Promise(fulfill => context.once('pageevent', async event => fulfill(await event.page()))),
110110
page.goto(server.PREFIX + '/popup/window-open.html')
111111
]);
112+
await popup.waitForLoadState();
112113
expect(popup.url()).toBe(server.PREFIX + '/popup/popup.html');
113114
expect(await popup.opener()).toBe(page);
114115
expect(await page.opener()).toBe(null);

0 commit comments

Comments
 (0)