@applitools/eyes-webdriverio 5.34.2 → 5.34.6
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 +23 -0
- package/dist/api.js +1 -1
- package/dist/service.js +14 -13
- package/package.json +11 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,29 @@
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
## 5.34.6 - 2021/12/23
|
|
7
|
+
|
|
8
|
+
- updated to @applitools/eyes-sdk-core@12.24.9 (from 12.24.7)
|
|
9
|
+
- updated to @applitools/visual-grid-client@15.8.55 (from 15.8.53)
|
|
10
|
+
|
|
11
|
+
## 5.34.5 - 2021/12/20
|
|
12
|
+
|
|
13
|
+
- updated to @applitools/eyes-sdk-core@12.24.7 (from 12.24.6)
|
|
14
|
+
- updated to @applitools/spec-driver-webdriverio@1.2.3 (from 1.2.2)
|
|
15
|
+
- updated to @applitools/visual-grid-client@15.8.53 (from 15.8.52)
|
|
16
|
+
- updated to @applitools/spec-driver-webdriverio@1.2.5 (from 1.2.3)
|
|
17
|
+
|
|
18
|
+
## 5.34.4 - 2021/12/17
|
|
19
|
+
|
|
20
|
+
- updated to @applitools/eyes-sdk-core@12.24.6 (from 12.24.5)
|
|
21
|
+
- updated to @applitools/visual-grid-client@15.8.52 (from 15.8.49)
|
|
22
|
+
|
|
23
|
+
## 5.34.3 - 2021/12/7
|
|
24
|
+
|
|
25
|
+
- updated to @applitools/eyes-sdk-core@12.24.5 (from 12.24.2)
|
|
26
|
+
- updated to @applitools/visual-grid-client@15.8.49 (from 15.8.47)
|
|
27
|
+
- updated to @applitools/spec-driver-webdriverio@1.2.2 (from 1.2.1)
|
|
28
|
+
|
|
6
29
|
## 5.34.2 - 2021/11/18
|
|
7
30
|
|
|
8
31
|
- updated to @applitools/eyes-sdk-core@12.24.2 (from 12.24.1)
|
package/dist/api.js
CHANGED
|
@@ -27,7 +27,7 @@ const eyes_sdk_core_1 = require("@applitools/eyes-sdk-core");
|
|
|
27
27
|
const api = __importStar(require("@applitools/eyes-api"));
|
|
28
28
|
const spec = __importStar(require("@applitools/spec-driver-webdriverio"));
|
|
29
29
|
const sdk = (0, eyes_sdk_core_1.makeSDK)({
|
|
30
|
-
name: 'eyes
|
|
30
|
+
name: 'eyes-webdriverio',
|
|
31
31
|
version: require('../package.json').version,
|
|
32
32
|
spec,
|
|
33
33
|
VisualGridClient: require('@applitools/visual-grid-client'),
|
package/dist/service.js
CHANGED
|
@@ -59,6 +59,17 @@ class EyesService {
|
|
|
59
59
|
config.hideScrollbars = true;
|
|
60
60
|
this._eyes = new EyesOverride(useVisualGrid ? new api_1.VisualGridRunner({ testConcurrency: concurrency }) : new api_1.ClassicRunner(), config);
|
|
61
61
|
}
|
|
62
|
+
async _eyesOpen() {
|
|
63
|
+
if (!this._eyes.isOpen) {
|
|
64
|
+
this._testResults = null;
|
|
65
|
+
await this._eyes.open(browser);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
async _eyesClose() {
|
|
69
|
+
if (this._eyes.isOpen) {
|
|
70
|
+
this._testResults = await this._eyes.close(false);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
62
73
|
beforeSession(config) {
|
|
63
74
|
this._appName = this._eyes.configuration.appName;
|
|
64
75
|
if (config.enableEyesLogs) {
|
|
@@ -103,10 +114,11 @@ class EyesService {
|
|
|
103
114
|
});
|
|
104
115
|
}
|
|
105
116
|
beforeTest(test) {
|
|
117
|
+
var _a, _b, _c;
|
|
106
118
|
const configuration = this._eyes.getConfiguration();
|
|
107
|
-
configuration.setTestName(test.title
|
|
119
|
+
configuration.setTestName((_a = test.title) !== null && _a !== void 0 ? _a : test.description);
|
|
108
120
|
if (!this._appName) {
|
|
109
|
-
configuration.setAppName(test.parent || test.
|
|
121
|
+
configuration.setAppName((_b = test.parent) !== null && _b !== void 0 ? _b : (_c = test.fullName) === null || _c === void 0 ? void 0 : _c.replace(` ${test.description}`, ''));
|
|
110
122
|
}
|
|
111
123
|
if (!configuration.getViewportSize()) {
|
|
112
124
|
configuration.setViewportSize({ width: 800, height: 600 });
|
|
@@ -121,16 +133,5 @@ class EyesService {
|
|
|
121
133
|
await this._eyes.runner.getAllTestResults(false);
|
|
122
134
|
await this._eyes.abort();
|
|
123
135
|
}
|
|
124
|
-
async _eyesOpen() {
|
|
125
|
-
if (!this._eyes.isOpen) {
|
|
126
|
-
this._testResults = null;
|
|
127
|
-
await this._eyes.open(browser);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
async _eyesClose() {
|
|
131
|
-
if (this._eyes.isOpen) {
|
|
132
|
-
this._testResults = await this._eyes.close(false);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
136
|
}
|
|
136
137
|
module.exports = EyesService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-webdriverio",
|
|
3
|
-
"version": "5.34.
|
|
3
|
+
"version": "5.34.6",
|
|
4
4
|
"description": "Applitools Eyes SDK for WebdriverIO",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eyes-webdriverio",
|
|
@@ -52,7 +52,9 @@
|
|
|
52
52
|
},
|
|
53
53
|
"./v5/sync": {
|
|
54
54
|
"types": "./types/v5-sync.d.ts"
|
|
55
|
-
}
|
|
55
|
+
},
|
|
56
|
+
"./dist/*": "./dist/*.js",
|
|
57
|
+
"./package.json": "./package.json"
|
|
56
58
|
},
|
|
57
59
|
"typesVersions": {
|
|
58
60
|
"*": {
|
|
@@ -107,17 +109,17 @@
|
|
|
107
109
|
},
|
|
108
110
|
"dependencies": {
|
|
109
111
|
"@applitools/eyes-api": "1.1.6",
|
|
110
|
-
"@applitools/eyes-sdk-core": "12.24.
|
|
111
|
-
"@applitools/spec-driver-webdriverio": "1.2.
|
|
112
|
-
"@applitools/visual-grid-client": "15.8.
|
|
112
|
+
"@applitools/eyes-sdk-core": "12.24.9",
|
|
113
|
+
"@applitools/spec-driver-webdriverio": "1.2.5",
|
|
114
|
+
"@applitools/visual-grid-client": "15.8.55"
|
|
113
115
|
},
|
|
114
116
|
"devDependencies": {
|
|
115
117
|
"@applitools/api-extractor": "1.2.3",
|
|
116
118
|
"@applitools/scripts": "1.0.1",
|
|
117
119
|
"@applitools/sdk-coverage-tests": "^2.3.16",
|
|
118
120
|
"@applitools/sdk-release-kit": "^0.13.4",
|
|
119
|
-
"@applitools/sdk-shared": "0.9.
|
|
120
|
-
"@applitools/test-utils": "1.0.
|
|
121
|
+
"@applitools/sdk-shared": "0.9.11",
|
|
122
|
+
"@applitools/test-utils": "1.0.10",
|
|
121
123
|
"@types/mocha": "^9.0.0",
|
|
122
124
|
"@typescript-eslint/eslint-plugin": "^4.15.1",
|
|
123
125
|
"@typescript-eslint/parser": "^4.15.1",
|
|
@@ -125,6 +127,7 @@
|
|
|
125
127
|
"@wdio/dot-reporter": "^7.16.4",
|
|
126
128
|
"@wdio/local-runner": "^7.16.5",
|
|
127
129
|
"@wdio/mocha-framework": "^7.16.4",
|
|
130
|
+
"@wdio/types": "^7.16.11",
|
|
128
131
|
"chromedriver": "^95.0.0",
|
|
129
132
|
"eslint": "^7.9.0",
|
|
130
133
|
"eslint-config-prettier": "^7.2.0",
|
|
@@ -139,7 +142,7 @@
|
|
|
139
142
|
"ts-node": "^10.2.1",
|
|
140
143
|
"ttypescript": "^1.5.12",
|
|
141
144
|
"typescript": "^4.5.1-rc",
|
|
142
|
-
"webdriverio": "^7.
|
|
145
|
+
"webdriverio": "^7.16.12"
|
|
143
146
|
},
|
|
144
147
|
"peerDependencies": {
|
|
145
148
|
"webdriverio": "5.0.0 - 7.x.x"
|