Merge pull request #2014 from NguyenTranHoangSym/experimental-fix-e2e

SDA-4404: Resolve Framework Conflict Electron with WDIO
This commit is contained in:
NguyenTranHoangSym 2023-11-23 10:07:13 +07:00 committed by GitHub
commit c9f358f9f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -438,6 +438,7 @@ export class WindowHandler {
) { ) {
this.mainWebContents = await loadBrowserViews(this.mainWindow); this.mainWebContents = await loadBrowserViews(this.mainWindow);
this.mainWebContents.loadURL(this.url, { userAgent }); this.mainWebContents.loadURL(this.url, { userAgent });
this.mainWindow.loadURL('about:blank', { userAgent });
} else { } else {
this.mainWindow.loadURL(this.url, { userAgent }); this.mainWindow.loadURL(this.url, { userAgent });
this.mainWebContents = this.mainWindow.webContents; this.mainWebContents = this.mainWindow.webContents;