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

This commit is contained in:
Yury Semikhatsky 2020-08-20 19:48:56 -07:00 committed by GitHub
parent 83f399534c
commit 7a492831a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'));
}),