Skip to content

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

fix(test): fix the popup test on Windows (#3558)

Yury Semikhatsky7a492831a104
diff --git a/test/popup.spec.ts b/test/popup.spec.ts
index 4ca24a2ac4..241c003070 100644
--- a/test/popup.spec.ts
+++ b/test/popup.spec.ts
@@ -221,7 +221,7 @@ it('should not dispatch binding on a closed page', async function({browser, serv
await Promise.all([
page.waitForEvent('popup').then(popup => {
if (popup.isClosed())
- messages.push('alreadyclosed');
+ messages.push('close');
else
return popup.waitForEvent('close').then(() => messages.push('close'));
}),