LP1989195: Nightwatch Chrome Config & Notes
authorBill Erickson <berickxx@gmail.com>
Tue, 25 Oct 2022 17:39:06 +0000 (13:39 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Tue, 9 May 2023 14:54:25 +0000 (10:54 -0400)
This does not install the chrome driver by default.  It only modifies
the config to support chrome as an option.

For those that want to test with Chrome in addition to Firefox:

$ npm install --save-dev chromedriver
$ ng e2e --env chrome

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>

Open-ILS/src/eg2/nightwatch.conf.js

index e1f20e1..4c26883 100644 (file)
@@ -74,6 +74,23 @@ module.exports = {
           // '-vv'
         ]
       }
+    },
+    // To test with chrome:
+    // $ npm install --save-dev chromedriver
+    // $ ng e2e --evn chrome
+    chrome: {
+      desiredCapabilities : {
+        browserName : 'chrome',
+        alwaysMatch: {
+          acceptInsecureCerts: true,
+        }
+      },
+      webdriver: {
+        start_process: true,
+        server_path: '',
+        cli_args: [
+        ]
+      }
     }
   }
 };