mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
test: add retries to another beforeunload test (#23644)
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user