@enact/ui-test-utils 1.0.7 → 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,13 @@
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
+
7
+ ## [1.0.8] (June 11, 2024)
8
+
9
+ * Removed `chai` and `dirty-chai` dependencies.
10
+
3
11
  ## [1.0.7] (February 21, 2024)
4
12
 
5
13
  * Removed eslint related modules.
@@ -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
  }
@@ -223,13 +229,8 @@ module.exports.configure = (options) => {
223
229
  */
224
230
  before: function () {
225
231
  require('expect-webdriverio');
226
- const chai = require('chai'),
227
- dirtyChai = require('dirty-chai');
228
232
 
229
233
  global.wdioExpect = global.expect;
230
- chai.use(dirtyChai);
231
- global.expect = chai.expect;
232
- chai.Should();
233
234
 
234
235
  if (options.before) {
235
236
  options.before();