From f45a7a9545ace1a69aace4756e5ceb14f496dc09 Mon Sep 17 00:00:00 2001 From: Chunpeng Huo Date: Fri, 28 Feb 2020 11:50:39 +1100 Subject: [PATCH] fix(protractor): fix chrome-driver issue on visible chrome too --- skeleton/protractor/protractor.conf.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skeleton/protractor/protractor.conf.js b/skeleton/protractor/protractor.conf.js index 7f9160420..3bcbdbedb 100644 --- a/skeleton/protractor/protractor.conf.js +++ b/skeleton/protractor/protractor.conf.js @@ -54,7 +54,9 @@ const config = { '--disable-translate', '--disable-background-timer-throttling', '--disable-renderer-backgrounding', - '--disable-device-discovery-notifications' + '--disable-device-discovery-notifications', + '--no-sandbox', + '--disable-dev-shm-usage' ] } }, @@ -78,8 +80,6 @@ const config = { if (headless) { config.capabilities.chromeOptions.args.push("--no-gpu"); config.capabilities.chromeOptions.args.push("--headless"); - config.capabilities.chromeOptions.args.push("--no-sandbox"); - config.capabilities.chromeOptions.args.push("--disable-dev-shm-usage"); } exports.config = config;