Skip to content

Commit

Permalink
Install correct Chromedriver version (#68)
Browse files Browse the repository at this point in the history
Tests recently started failing in GitHub actions, and it's because the pre-installed version of Chrome and the version of Chromedriver specified in `package.json` fell out of sync. This installs the latest Chromedriver, but also adds an NPM configuration option to make this future-proof by detecting which version of Chrome is installed and downloading a matching Chromedriver version, rather than the specific version from `package.json`.
  • Loading branch information
Mr0grog authored Jun 21, 2023
1 parent 490878c commit 1cb7e71
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 19 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
detect_chromedriver_version=true
36 changes: 18 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@wdio/local-runner": "^8.8.8",
"@wdio/mocha-framework": "^8.8.6",
"@wdio/spec-reporter": "^8.8.6",
"chromedriver": "^112.0.0",
"chromedriver": "^114.0.2",
"copy-webpack-plugin": "^10.2.4",
"geckodriver": "^3.2.0",
"hastscript": "^7.0.2",
Expand Down

0 comments on commit 1cb7e71

Please sign in to comment.