Skip to content

Commit

Permalink
only use --headless when running protractor on travis (#3422)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek authored Apr 6, 2020
1 parent 624388d commit 3511605
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion protractor.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ var path = require('path');
function getChromeOptions() {
var chromeOptions = {
args: [
'--headless',
'--no-sandbox',
],
};
Expand All @@ -14,6 +13,10 @@ function getChromeOptions() {
chromeOptions.binary = process.env.CHROME_BIN;
}

if (process.env.TRAVIS) {
chromeOptions.args.push('--headless');
}

return chromeOptions;
}

Expand Down

0 comments on commit 3511605

Please sign in to comment.