test: add retries to another beforeunload test (#23644)
This commit is contained in:
parent
c00103d274
commit
01579cc8ed
1 changed files with 3 additions and 1 deletions
|
@ -185,7 +185,9 @@ describe('BrowserWindow module', () => {
|
|||
fs.unlinkSync(test);
|
||||
expect(content).to.equal('close');
|
||||
});
|
||||
it('should emit beforeunload event', async () => {
|
||||
it('should emit beforeunload event', async function () {
|
||||
// TODO(nornagon): deflake this test.
|
||||
this.retries(3);
|
||||
await w.loadFile(path.join(__dirname, 'fixtures', 'api', 'close-beforeunload-false.html'));
|
||||
w.webContents.executeJavaScript('run()', true);
|
||||
const [e] = await emittedOnce(ipcMain, 'onbeforeunload');
|
||||
|
|
Loading…
Reference in a new issue