Skip to content

Commit

Permalink
chore: fix flaky fullscreen inheritance test (#30081)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 committed Jul 12, 2021
1 parent 21f6937 commit c806184
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 c806184

Please sign in to comment.