Skip to content

Commit

Permalink
1.0.9 release
Browse files Browse the repository at this point in the history
  • Loading branch information
enact-bot committed Jul 22, 2024
2 parents 6e280a2 + 3882ab4 commit 640332b
Show file tree
Hide file tree
Showing 4 changed files with 418 additions and 423 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [1.0.9] (July 22, 2024)

* Updated Chrome driver url for version 114 or higher

## [1.0.8] (June 11, 2024)

* Removed `chai` and `dirty-chai` dependencies.
Expand Down
10 changes: 8 additions & 2 deletions config/wdio.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ module.exports.configure = (options) => {
const chromeVersion = /Chrome (\d+)/.exec(execSync('google-chrome -version'));
chromeVersionMajorNumber = (chromeVersion && chromeVersion[1]);
}
const chromeDriverVersion = execSync('curl https://chromedriver.storage.googleapis.com/LATEST_RELEASE' + (chromeVersionMajorNumber ? ('_' + chromeVersionMajorNumber) : ''));
let chromeDriverVersion;

if (chromeVersionMajorNumber > 114) {
chromeDriverVersion = execSync('curl https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE' + (chromeVersionMajorNumber ? ('_' + chromeVersionMajorNumber) : ''));
} else {
chromeDriverVersion = execSync('curl https://chromedriver.storage.googleapis.com/LATEST_RELEASE' + (chromeVersionMajorNumber ? ('_' + chromeVersionMajorNumber) : ''));
}

if (chromeDriverVersion.includes('Error') || !/\d+.\d+.\d+.\d+/.exec(chromeDriverVersion)) {
throw new Error();
Expand Down Expand Up @@ -183,7 +189,7 @@ module.exports.configure = (options) => {
chrome : {
version : process.env.CHROME_DRIVER,
arch : process.arch,
baseURL : 'https://chromedriver.storage.googleapis.com'
baseURL : process.env.CHROME_DRIVER > 114 ? 'https://storage.googleapis.com' : 'https://chromedriver.storage.googleapis.com'
}
}
}
Expand Down
Loading

0 comments on commit 640332b

Please sign in to comment.