From 3511605071fad1aad4de3f9a47aeea82ccea587f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Ja=C5=A1ek?= Date: Mon, 6 Apr 2020 14:41:38 +0200 Subject: [PATCH] only use `--headless` when running protractor on travis (#3422) --- protractor.conf.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/protractor.conf.js b/protractor.conf.js index a69f0378d8..94221beb7c 100644 --- a/protractor.conf.js +++ b/protractor.conf.js @@ -5,7 +5,6 @@ var path = require('path'); function getChromeOptions() { var chromeOptions = { args: [ - '--headless', '--no-sandbox', ], }; @@ -14,6 +13,10 @@ function getChromeOptions() { chromeOptions.binary = process.env.CHROME_BIN; } + if (process.env.TRAVIS) { + chromeOptions.args.push('--headless'); + } + return chromeOptions; }