[MM-18135] use no sandbox, separate linting, circle 2.1 (#1029)
* [MM-18135] use no sandbox, separate linting, circle 2.1 * [MM-18135] merge lint and test step, use -quiet, clarify changing debugging port
This commit is contained in:
@@ -49,10 +49,19 @@ module.exports = {
|
||||
},
|
||||
|
||||
getSpectronApp() {
|
||||
return new Application({
|
||||
const options = {
|
||||
path: electronBinaryPath,
|
||||
args: [`${path.join(sourceRootDir, 'src')}`, `--data-dir=${userDataDir}`, '--disable-dev-mode'],
|
||||
});
|
||||
|
||||
// enable this if chromedriver hangs to see logs
|
||||
// chromeDriverLogPath: '../chromedriverlog.txt',
|
||||
};
|
||||
if (process.platform === 'darwin') {
|
||||
// on a mac, debbuging port might conflict with other apps
|
||||
// this changes the default debugging port so chromedriver can run without issues.
|
||||
options.chromeDriverArgs.push('remote-debugging-port=9222');
|
||||
}
|
||||
return new Application(options);
|
||||
},
|
||||
|
||||
addClientCommands(client) {
|
||||
|
@@ -27,7 +27,6 @@ describe('application', function desc() {
|
||||
await this.app.client.waitUntilWindowLoaded();
|
||||
const count = await this.app.client.getWindowCount();
|
||||
count.should.equal(1);
|
||||
|
||||
const opened = await this.app.browserWindow.isDevToolsOpened();
|
||||
opened.should.be.false;
|
||||
|
||||
|
Reference in New Issue
Block a user