diff --git a/spec/api-browser-window-spec.js b/spec/api-browser-window-spec.js index 86e24785a3a9..a07f301c8b37 100644 --- a/spec/api-browser-window-spec.js +++ b/spec/api-browser-window-spec.js @@ -236,6 +236,7 @@ describe('BrowserWindow module', function () { }) w.webContents.executeJavaScript(` form = document.createElement('form') + document.body.appendChild(form) form.method = 'POST' form.target = '_blank' form.submit() @@ -252,6 +253,7 @@ describe('BrowserWindow module', function () { }) w.webContents.executeJavaScript(` form = document.createElement('form') + document.body.appendChild(form) form.method = 'POST' form.target = '_blank' form.enctype = 'multipart/form-data'