@enact/ui-test-utils 3.0.0 → 4.0.0
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 +4 -0
- package/config/wdio.conf.js +41 -50
- package/npm-shrinkwrap.json +1166 -2362
- package/package.json +16 -17
- package/screenshot/wdio.tv.conf.js +1 -7
- package/ui/wdio.tv.conf.js +1 -7
- package/utils/Page.js +1 -5
- package/utils/runTest.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enact/ui-test-utils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "UI Testing for the Enact framework",
|
|
5
5
|
"repository": "https://github.com/enactjs/ui-test-utils",
|
|
6
6
|
"type": "module",
|
|
@@ -29,29 +29,28 @@
|
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@wdio/cli": "^9.
|
|
33
|
-
"@wdio/dot-reporter": "^9.
|
|
34
|
-
"@wdio/local-runner": "9.
|
|
35
|
-
"@wdio/mocha-framework": "^9.
|
|
36
|
-
"@wdio/spec-reporter": "^9.
|
|
37
|
-
"@wdio/static-server-service": "^9.
|
|
38
|
-
"@wdio/visual-service": "^
|
|
39
|
-
"chalk": "^5.
|
|
32
|
+
"@wdio/cli": "^9.20.0",
|
|
33
|
+
"@wdio/dot-reporter": "^9.20.0",
|
|
34
|
+
"@wdio/local-runner": "^9.20.0",
|
|
35
|
+
"@wdio/mocha-framework": "^9.20.0",
|
|
36
|
+
"@wdio/spec-reporter": "^9.20.0",
|
|
37
|
+
"@wdio/static-server-service": "^9.20.0",
|
|
38
|
+
"@wdio/visual-service": "^9.0.0",
|
|
39
|
+
"chalk": "^5.6.2",
|
|
40
40
|
"cross-spawn": "^7.0.6",
|
|
41
|
-
"expect-webdriverio": "^5.3
|
|
42
|
-
"fs-extra": "^11.3.
|
|
41
|
+
"expect-webdriverio": "^5.4.3",
|
|
42
|
+
"fs-extra": "^11.3.2",
|
|
43
43
|
"minimist": "^1.2.8",
|
|
44
44
|
"query-string": "^7.1.3",
|
|
45
|
-
"ramda": "^0.
|
|
45
|
+
"ramda": "^0.31.3",
|
|
46
46
|
"readdirp": "^3.6.0",
|
|
47
47
|
"wdio-docker-service": "^3.2.1",
|
|
48
|
-
"
|
|
49
|
-
"webdriverio": "^9.15.0"
|
|
48
|
+
"webdriverio": "^9.20.0"
|
|
50
49
|
},
|
|
51
50
|
"devDependencies": {
|
|
52
|
-
"eslint": "^9.
|
|
53
|
-
"eslint-config-enact": "^5.0.
|
|
54
|
-
"globals": "^16.
|
|
51
|
+
"eslint": "^9.36.0",
|
|
52
|
+
"eslint-config-enact": "^5.0.2",
|
|
53
|
+
"globals": "^16.4.0"
|
|
55
54
|
},
|
|
56
55
|
"overrides": {
|
|
57
56
|
"cross-spawn": "$cross-spawn",
|
|
@@ -33,15 +33,9 @@ const config = Object.assign(
|
|
|
33
33
|
'wdio:maxInstances': 1,
|
|
34
34
|
//
|
|
35
35
|
browserName: 'chrome',
|
|
36
|
-
/* WebdriverIO v8.14 and above downloads and uses the latest Chrome version when running tests.
|
|
37
|
-
We need to specify a browser version that match chromedriver version running in CI/CD environment to
|
|
38
|
-
ensure testing accuracy.
|
|
39
|
-
TODO: Update this version when chromedriver version in CI/CD is updated */
|
|
40
|
-
browserVersion: '120.0.6099.109',
|
|
41
36
|
'goog:chromeOptions': {
|
|
42
37
|
debuggerAddress: `${process.env.TV_IP}:9998`
|
|
43
|
-
}
|
|
44
|
-
'wdio:enforceWebDriverClassic': true
|
|
38
|
+
}
|
|
45
39
|
}],
|
|
46
40
|
|
|
47
41
|
//
|
package/ui/wdio.tv.conf.js
CHANGED
|
@@ -12,15 +12,9 @@ const config = Object.assign(
|
|
|
12
12
|
'wdio:maxInstances': 1,
|
|
13
13
|
//
|
|
14
14
|
browserName: 'chrome',
|
|
15
|
-
/* WebdriverIO v8.14 and above downloads and uses the latest Chrome version when running tests.
|
|
16
|
-
We need to specify a browser version that match chromedriver version running in CI/CD environment to
|
|
17
|
-
ensure testing accuracy.
|
|
18
|
-
TODO: Update this version when chromedriver version in CI/CD is updated */
|
|
19
|
-
browserVersion: '120.0.6099.109',
|
|
20
15
|
'goog:chromeOptions': {
|
|
21
16
|
debuggerAddress: `${process.env.TV_IP}:9998`
|
|
22
|
-
}
|
|
23
|
-
'wdio:enforceWebDriverClassic': true
|
|
17
|
+
}
|
|
24
18
|
}],
|
|
25
19
|
|
|
26
20
|
baseUrl: `http://${ipAddress()}:4567`,
|
package/utils/Page.js
CHANGED
|
@@ -16,15 +16,11 @@ export class Page {
|
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
this._url = `/${appPath}/${urlExtra}`;
|
|
19
|
-
// Can't resize browser window when connected to remote debugger!
|
|
20
|
-
if (!browser._options || !browser._options.remote) {
|
|
21
|
-
await browser.setWindowSize(1920, 1080);
|
|
22
|
-
}
|
|
23
19
|
|
|
24
20
|
await browser.url(this.url);
|
|
25
21
|
|
|
26
22
|
const body = await $('body');
|
|
27
|
-
await body.waitForDisplayed({timeout:
|
|
23
|
+
await body.waitForDisplayed({timeout: 10000});
|
|
28
24
|
|
|
29
25
|
await this.delay(200);
|
|
30
26
|
}
|
package/utils/runTest.js
CHANGED
|
@@ -64,6 +64,7 @@ export const runTest = ({concurrency, filter, Page, testName, ...rest}) => {
|
|
|
64
64
|
|
|
65
65
|
expect(await browser.checkScreen(screenshotFileName, {
|
|
66
66
|
disableCSSAnimation: true,
|
|
67
|
+
ignoreAntialiasing: true,
|
|
67
68
|
ignoreNothing: true,
|
|
68
69
|
rawMisMatchPercentage: true,
|
|
69
70
|
waitForFontsLoaded: true
|