chore: fix flaky fullscreen inheritance test (#30081)
This commit is contained in:
parent
21f6937728
commit
c806184bfe
1 changed files with 4 additions and 2 deletions
|
@ -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');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue