replace Spectron by Playwright
This commit is contained in:
@@ -3,9 +3,6 @@ import * as path from 'path';
|
||||
import * as fs from 'fs';
|
||||
import * as url from 'url';
|
||||
|
||||
// Initialize remote module
|
||||
require('@electron/remote/main').initialize();
|
||||
|
||||
let win: BrowserWindow = null;
|
||||
const args = process.argv.slice(1),
|
||||
serve = args.some(val => val === '--serve');
|
||||
@@ -25,7 +22,6 @@ function createWindow(): BrowserWindow {
|
||||
nodeIntegration: true,
|
||||
allowRunningInsecureContent: (serve) ? true : false,
|
||||
contextIsolation: false, // false if you want to run e2e test with Spectron
|
||||
enableRemoteModule : true // true if you want to run e2e test with Spectron or use remote module in renderer context (ie. Angular)
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user