chore: fix flaky fullscreen inheritance test (#30081)

This commit is contained in:
Robo 2021-07-12 15:19:30 +09:00 committed by GitHub
parent 21f6937728
commit c806184bfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4211,8 +4211,10 @@ describe('BrowserWindow module', () => {
await enterFullScreen;
expect(w.isFullScreen()).to.be.true('isFullScreen');
await delay();
const w2 = new BrowserWindow();
await delay();
const w2 = new BrowserWindow({ show: false });
const enterFullScreen2 = emittedOnce(w2, 'enter-full-screen');
w2.show();
await enterFullScreen2;
expect(w2.isFullScreen()).to.be.true('isFullScreen');
});
});