LP#1989195: (follow-up) flesh out Chrome e2e options
[evergreen-equinox.git] / Open-ILS / src / eg2 / nightwatch.conf.js
index 4c26883..f89e639 100644 (file)
@@ -77,7 +77,7 @@ module.exports = {
     },
     // To test with chrome:
     // $ npm install --save-dev chromedriver
-    // $ ng e2e --evn chrome
+    // $ ng e2e --env chrome
     chrome: {
       desiredCapabilities : {
         browserName : 'chrome',
@@ -91,6 +91,27 @@ module.exports = {
         cli_args: [
         ]
       }
+    },
+    // $ ng e2e --env chrome-headless
+    'chrome-headless': {
+      desiredCapabilities : {
+        browserName : 'chrome',
+        alwaysMatch: {
+          acceptInsecureCerts: true,
+        },
+        chromeOptions : {
+            args: ['headless', 'no-sandbox', 'disable-gpu']
+        },
+        chromeOptions : {
+            args: ['headless', 'no-sandbox', 'disable-gpu']
+        }
+      },
+      webdriver: {
+        start_process: true,
+        server_path: '',
+        cli_args: [
+        ]
+      }
     }
   }
 };