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…
Reference in a new issue