mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix(test): fix the popup test on Windows (#3558)
This commit is contained in:
parent
83f399534c
commit
7a492831a1
@ -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'));
|
||||
}),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user