diff --git a/spec-main/api-web-contents-spec.ts b/spec-main/api-web-contents-spec.ts index d1055e9ea0860..9a6481f2f27d1 100644 --- a/spec-main/api-web-contents-spec.ts +++ b/spec-main/api-web-contents-spec.ts @@ -2074,7 +2074,7 @@ describe('webContents module', () => { } }); }); - w.webContents.loadURL(path.join(mainFixturesPath, 'sub-frames/frame-with-frame.html')); + w.webContents.loadFile(path.join(mainFixturesPath, 'sub-frames/frame-with-frame.html')); await promise; }); }); diff --git a/spec-main/fixtures/sub-frames/frame-with-frame.html b/spec-main/fixtures/sub-frames/frame-with-frame.html index e045b57522c81..3f46a8adab9d3 100644 --- a/spec-main/fixtures/sub-frames/frame-with-frame.html +++ b/spec-main/fixtures/sub-frames/frame-with-frame.html @@ -8,6 +8,6 @@ This is a frame, is has one child - + \ No newline at end of file