@enact/ui-test-utils 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## [1.0.9] (July 22, 2024)
4
+
5
+ * Updated Chrome driver url for version 114 or higher
6
+
3
7
  ## [1.0.8] (June 11, 2024)
4
8
 
5
9
  * Removed `chai` and `dirty-chai` dependencies.
@@ -33,7 +33,13 @@ module.exports.configure = (options) => {
33
33
  const chromeVersion = /Chrome (\d+)/.exec(execSync('google-chrome -version'));
34
34
  chromeVersionMajorNumber = (chromeVersion && chromeVersion[1]);
35
35
  }
36
- const chromeDriverVersion = execSync('curl https://chromedriver.storage.googleapis.com/LATEST_RELEASE' + (chromeVersionMajorNumber ? ('_' + chromeVersionMajorNumber) : ''));
36
+ let chromeDriverVersion;
37
+
38
+ if (chromeVersionMajorNumber > 114) {
39
+ chromeDriverVersion = execSync('curl https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE' + (chromeVersionMajorNumber ? ('_' + chromeVersionMajorNumber) : ''));
40
+ } else {
41
+ chromeDriverVersion = execSync('curl https://chromedriver.storage.googleapis.com/LATEST_RELEASE' + (chromeVersionMajorNumber ? ('_' + chromeVersionMajorNumber) : ''));
42
+ }
37
43
 
38
44
  if (chromeDriverVersion.includes('Error') || !/\d+.\d+.\d+.\d+/.exec(chromeDriverVersion)) {
39
45
  throw new Error();
@@ -183,7 +189,7 @@ module.exports.configure = (options) => {
183
189
  chrome : {
184
190
  version : process.env.CHROME_DRIVER,
185
191
  arch : process.arch,
186
- baseURL : 'https://chromedriver.storage.googleapis.com'
192
+ baseURL : process.env.CHROME_DRIVER > 114 ? 'https://storage.googleapis.com' : 'https://chromedriver.storage.googleapis.com'
187
193
  }
188
194
  }
189
195
  }