[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:
Guillermo Vayá
2019-09-06 22:44:52 +02:00
committed by GitHub
parent 32b747ab30
commit 304d26cece
4 changed files with 61 additions and 28 deletions

View File

@@ -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) {

View File

@@ -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;