@enact/ui-test-utils 2.0.0-alpha.1 → 2.0.0-alpha.2

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
+ ## [2.0.0-alpha.2] (March 7, 2025)
4
+
5
+ * Updated `webdriverio` and related dependencies to version 9.
6
+ * Dropped support for Node.js 16. Required Node.js version >= 18.
7
+ * Removed deprecated `@wdio/selenium-standalone-service` module and added `wdio-selenium-standalone-service` community package.
8
+ * Removed `w3c: false` and replaced with `'wdio:enforceWebDriverClassic': true` when running tests on a remote debugger. w3c enforces the usage of JSON Wire Protocol which has been removed from `webdriverio` v9.
9
+ * Replaced deprecated dependency `wdio-image-comparison-service` with `@wdio/visual-service`.
10
+
3
11
  ## [2.0.0-alpha.1] (February 26, 2025)
4
12
 
5
13
  * Updated `eslint` to v9 and adopted flat config.
@@ -72,12 +72,18 @@ module.exports.configure = (options) => {
72
72
  // Specify Test Files
73
73
  // ==================
74
74
  // Define which test specs should run. The pattern is relative to the directory
75
- // from which `wdio` was called. Notice that, if you are calling `wdio` from an
76
- // NPM script (see https://docs.npmjs.com/cli/run-script) then the current working
77
- // directory is where your package.json resides, so `wdio` will be called from there.
75
+ // of the configuration file being run.
76
+ //
77
+ // The specs are defined as an array of spec files (optionally using wildcards
78
+ // that will be expanded). The test for each spec file will be run in a separate
79
+ // worker process. In order to have a group of spec files run in the same worker
80
+ // process enclose them in an array within the specs array.
81
+ //
82
+ // The path of the spec files will be resolved relative from the directory of
83
+ // the config file unless it's absolute.
78
84
  //
79
85
  specs: [
80
- './tests/' + base + '/specs/**/*-specs.js'
86
+ '../../tests/' + base + '/specs/**/*-specs.js'
81
87
  ],
82
88
  // Patterns to exclude.
83
89
  exclude: [
@@ -112,6 +118,11 @@ module.exports.configure = (options) => {
112
118
  maxInstances,
113
119
  //
114
120
  browserName: 'chrome',
121
+ /* WebdriverIO v8.14 and above downloads and uses the latest Chrome version when running tests.
122
+ We need to specify a browser version that matches chromedriver version running in CI/CD environment to
123
+ ensure testing accuracy.
124
+ TODO: Update this version when chromedriver version in CI/CD is updated */
125
+ browserVersion: '120.0.6099.109',
115
126
  'goog:chromeOptions': visibleBrowser ? {} : {
116
127
  args: ['--headless', '--window-size=1920,1080']
117
128
  }
@@ -175,24 +186,7 @@ module.exports.configure = (options) => {
175
186
  // commands. Instead, they hook themselves up into the test process.
176
187
  services: [
177
188
  ['selenium-standalone', {
178
- skipSeleniumInstall: offline,
179
- args: {
180
- drivers : {
181
- chrome : {
182
- version : process.env.CHROME_DRIVER,
183
- arch : process.arch
184
- }
185
- }
186
- },
187
- installArgs: {
188
- drivers : {
189
- chrome : {
190
- version : process.env.CHROME_DRIVER,
191
- arch : process.arch,
192
- baseURL : process.env.CHROME_DRIVER > 114 ? 'https://storage.googleapis.com' : 'https://chromedriver.storage.googleapis.com'
193
- }
194
- }
195
- }
189
+ skipSeleniumInstall: offline
196
190
  }],
197
191
  ['static-server', {
198
192
  folders: [