Skip to content

Commit 0935f14

Browse files
build: fix chromedriver version in CI
GitHub Actions VMs have Chrome installed, but there is a period of time after a new version is published that the machine is behind and builds fail. Specify the version used by GitHub Actions in our wdio.conf.js when CI is true until a better solution can be used. Ideally we'd either detect the correct version when running in CI or install our own version of chrome-stable. These options are more desirable than setting the Chrome version because we want to be aware of bugs that come up with newer browser versions.
1 parent 80fd5cd commit 0935f14

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

wdio.conf.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,12 @@ exports.config = {
117117
// Services take over a specific job you don't want to take care of. They enhance
118118
// your test setup with almost no effort. Unlike plugins, they don't add new
119119
// commands. Instead, they hook themselves up into the test process.
120-
services: [['selenium-standalone', {drivers: {firefox: true, chrome: true}}]],
120+
services: [
121+
[
122+
'selenium-standalone',
123+
{drivers: {firefox: true, chrome: !process.env.CI || {version: '94'}}},
124+
],
125+
],
121126

122127
// Framework you want to run your specs with.
123128
// The following are supported: Mocha, Jasmine, and Cucumber

0 commit comments

Comments
 (0)