@enact/ui-test-utils 1.0.1 → 1.0.3
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/.eslintrc.js +7 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +29 -0
- package/.travis.yml +1 -1
- package/CHANGELOG.md +9 -0
- package/config/wdio.conf.js +1 -1
- package/npm-shrinkwrap.json +69180 -15071
- package/package.json +28 -28
- package/start-tests.js +0 -0
- package/utils/Page.js +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enact/ui-test-utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "UI Testing for the Enact framework",
|
|
5
5
|
"repository": "https://github.com/enactjs/ui-test-utils",
|
|
6
6
|
"main": "index.js",
|
|
@@ -17,38 +17,38 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@wdio/cli": "^7.
|
|
21
|
-
"@wdio/dot-reporter": "^7.
|
|
22
|
-
"@wdio/local-runner": "^7.
|
|
23
|
-
"@wdio/mocha-framework": "^7.
|
|
24
|
-
"@wdio/selenium-standalone-service": "^7.
|
|
25
|
-
"@wdio/spec-reporter": "^7.
|
|
26
|
-
"@wdio/static-server-service": "^7.
|
|
27
|
-
"chai": "4.3.
|
|
20
|
+
"@wdio/cli": "^7.30.0",
|
|
21
|
+
"@wdio/dot-reporter": "^7.29.1",
|
|
22
|
+
"@wdio/local-runner": "^7.30.0",
|
|
23
|
+
"@wdio/mocha-framework": "^7.26.0",
|
|
24
|
+
"@wdio/selenium-standalone-service": "^7.30.0",
|
|
25
|
+
"@wdio/spec-reporter": "^7.29.1",
|
|
26
|
+
"@wdio/static-server-service": "^7.29.1",
|
|
27
|
+
"chai": "4.3.7",
|
|
28
28
|
"chalk": "^4.1.2",
|
|
29
29
|
"cross-spawn": "^7.0.3",
|
|
30
30
|
"dirty-chai": "2.0.1",
|
|
31
|
-
"expect-webdriverio": "^3.
|
|
32
|
-
"fs-extra": "^10.
|
|
33
|
-
"minimist": "^1.2.
|
|
34
|
-
"query-string": "^7.
|
|
35
|
-
"ramda": "^0.
|
|
31
|
+
"expect-webdriverio": "^3.5.3",
|
|
32
|
+
"fs-extra": "^10.1.0",
|
|
33
|
+
"minimist": "^1.2.7",
|
|
34
|
+
"query-string": "^7.1.1",
|
|
35
|
+
"ramda": "^0.28.0",
|
|
36
36
|
"readdirp": "^3.6.0",
|
|
37
|
-
"wdio-docker-service": "^3.1
|
|
38
|
-
"wdio-image-comparison-service": "^
|
|
39
|
-
"webdriverio": "^7.
|
|
37
|
+
"wdio-docker-service": "^3.2.1",
|
|
38
|
+
"wdio-image-comparison-service": "^5.0.2",
|
|
39
|
+
"webdriverio": "^7.30.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@babel/eslint-plugin": "^7.
|
|
43
|
-
"eslint": "^8.
|
|
44
|
-
"eslint-config-enact": "^4.1.
|
|
45
|
-
"eslint-config-prettier": "^8.
|
|
46
|
-
"eslint-plugin-enact": "^1.0.
|
|
47
|
-
"eslint-plugin-import": "^2.
|
|
48
|
-
"eslint-plugin-jest": "^
|
|
49
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
50
|
-
"eslint-plugin-prettier": "^4.
|
|
51
|
-
"eslint-plugin-react": "^7.
|
|
52
|
-
"eslint-plugin-react-hooks": "^4.
|
|
42
|
+
"@babel/eslint-plugin": "^7.19.1",
|
|
43
|
+
"eslint": "^8.32.0",
|
|
44
|
+
"eslint-config-enact": "^4.1.4",
|
|
45
|
+
"eslint-config-prettier": "^8.6.0",
|
|
46
|
+
"eslint-plugin-enact": "^1.0.2",
|
|
47
|
+
"eslint-plugin-import": "^2.27.5",
|
|
48
|
+
"eslint-plugin-jest": "^27.2.1",
|
|
49
|
+
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
50
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
51
|
+
"eslint-plugin-react": "^7.32.2",
|
|
52
|
+
"eslint-plugin-react-hooks": "^4.6.0"
|
|
53
53
|
}
|
|
54
54
|
}
|
package/start-tests.js
CHANGED
|
File without changes
|
package/utils/Page.js
CHANGED
|
@@ -145,8 +145,8 @@ class Page {
|
|
|
145
145
|
async waitTransitionEnd (timeout = 3000, timeoutMsg = 'timed out waiting for transitionend', callback, ignore = ['opacity', 'filter']) {
|
|
146
146
|
await browser.execute(
|
|
147
147
|
// eslint-disable-next-line no-shadow
|
|
148
|
-
function (ignore) {
|
|
149
|
-
window.ontransitionend = function (evt) {
|
|
148
|
+
async function (ignore) {
|
|
149
|
+
window.ontransitionend = await function (evt) {
|
|
150
150
|
if (!ignore || ignore.indexOf(evt.propertyName) === -1) {
|
|
151
151
|
window.__transition = true;
|
|
152
152
|
}
|
|
@@ -156,13 +156,13 @@ class Page {
|
|
|
156
156
|
ignore
|
|
157
157
|
);
|
|
158
158
|
if (callback) {
|
|
159
|
-
callback();
|
|
159
|
+
await callback();
|
|
160
160
|
}
|
|
161
161
|
await browser.waitUntil(
|
|
162
162
|
async function () {
|
|
163
163
|
return await browser.execute(
|
|
164
|
-
function () {
|
|
165
|
-
return window.__transition;
|
|
164
|
+
async function () {
|
|
165
|
+
return await window.__transition;
|
|
166
166
|
}
|
|
167
167
|
);
|
|
168
168
|
},
|