Run Chrome tests in headless mode

This commit is contained in:
hensm
2018-12-27 02:50:33 +00:00
parent f273a913a8
commit b7fd1a55aa

View File

@@ -31,6 +31,7 @@ const firefoxOptions = new firefox.Options()
.setPreference("xpinstall.signatures.required", false); .setPreference("xpinstall.signatures.required", false);
const chromeOptions = new chrome.Options() const chromeOptions = new chrome.Options()
.headless()
.excludeSwitches("disable-default-apps") .excludeSwitches("disable-default-apps")
.addArguments( .addArguments(
`--user-data-dir=${path.resolve(__dirname, "ChromeProfile")}`); `--user-data-dir=${path.resolve(__dirname, "ChromeProfile")}`);