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([
|
await Promise.all([
|
||||||
page.waitForEvent('popup').then(popup => {
|
page.waitForEvent('popup').then(popup => {
|
||||||
if (popup.isClosed())
|
if (popup.isClosed())
|
||||||
messages.push('alreadyclosed');
|
messages.push('close');
|
||||||
else
|
else
|
||||||
return popup.waitForEvent('close').then(() => messages.push('close'));
|
return popup.waitForEvent('close').then(() => messages.push('close'));
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue