diff --git a/spec-main/api-web-contents-spec.ts b/spec-main/api-web-contents-spec.ts index 56eca4d57b54..09991be4fba2 100644 --- a/spec-main/api-web-contents-spec.ts +++ b/spec-main/api-web-contents-spec.ts @@ -41,7 +41,10 @@ describe('webContents module', () => { }); }); - describe('will-prevent-unload event', () => { + describe('will-prevent-unload event', function () { + // TODO(nornagon): de-flake this properly + this.retries(3); + afterEach(closeAllWindows); it('does not emit if beforeunload returns undefined', (done) => { const w = new BrowserWindow({ show: false });