Skip to content

Commit

Permalink
chore: Workaround for chrome not being found on windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinnerbone committed Sep 4, 2020
1 parent 3a813f1 commit dbb368e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions web/packages/selfhosted/wdio.conf.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
let chrome_binary = undefined;

if (process.platform === "win32" && process.env.CI) {
// Chrome 84->85 changed the location where Chrome is installed on Windows.
// ChromeDriver can't find it yet, so we'll manually specify it for GitHub Actions.
// See https://github.com/actions/virtual-environments/issues/1546
// See https://developercommunity.visualstudio.com/content/problem/1170486/selenium-ui-test-can-no-longer-find-chrome-binary.html#reply-1171966
chrome_binary =
"C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe";
}

exports.config = {
//
// ====================
Expand Down Expand Up @@ -53,6 +64,7 @@ exports.config = {
browserName: "chrome",
"goog:chromeOptions": {
args: ["--headless", "--disable-gpu"],
binary: chrome_binary,
},
// If outputDir is provided WebdriverIO can capture driver session logs
// it is possible to configure which logTypes to include/exclude.
Expand Down

0 comments on commit dbb368e

Please sign in to comment.