Skip to content

Commit

Permalink
chore: fix flaky fullscreen inheritance test (electron#30081)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 authored and BlackHole1 committed Aug 27, 2021
1 parent 158d1f8 commit 661a800
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec-main/api-browser-window-spec.ts
Expand Up @@ -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');
});
});
Expand Down

0 comments on commit 661a800

Please sign in to comment.