@applitools/eyes 1.12.0 → 1.13.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 +55 -0
- package/dist/Eyes.js +6 -13
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,60 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.13.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes@1.12.0...js/eyes@1.13.0) (2023-12-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add Eyes.getResults method ([#2046](https://github.com/applitools/eyes.sdk.javascript1/issues/2046)) ([#2069](https://github.com/applitools/eyes.sdk.javascript1/issues/2069)) ([4d263e1](https://github.com/applitools/eyes.sdk.javascript1/commit/4d263e19cb5e5708790a1a7ef90ff8f3eee50d91))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* @applitools/utils bumped to 1.7.0
|
|
14
|
+
#### Features
|
|
15
|
+
|
|
16
|
+
* add Eyes.getResults method ([#2046](https://github.com/applitools/eyes.sdk.javascript1/issues/2046)) ([#2069](https://github.com/applitools/eyes.sdk.javascript1/issues/2069)) ([4d263e1](https://github.com/applitools/eyes.sdk.javascript1/commit/4d263e19cb5e5708790a1a7ef90ff8f3eee50d91))
|
|
17
|
+
* @applitools/core-base bumped to 1.7.4
|
|
18
|
+
#### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* do not block concurrency when server response is 503 ([#2049](https://github.com/applitools/eyes.sdk.javascript1/issues/2049)) ([f285009](https://github.com/applitools/eyes.sdk.javascript1/commit/f2850098f7522776c0d0a98bb1d958303628b149))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
* @applitools/logger bumped to 2.0.14
|
|
25
|
+
|
|
26
|
+
* @applitools/socket bumped to 1.1.14
|
|
27
|
+
|
|
28
|
+
* @applitools/req bumped to 1.6.4
|
|
29
|
+
|
|
30
|
+
* @applitools/image bumped to 1.1.9
|
|
31
|
+
|
|
32
|
+
* @applitools/spec-driver-webdriver bumped to 1.0.51
|
|
33
|
+
|
|
34
|
+
* @applitools/spec-driver-selenium bumped to 1.5.65
|
|
35
|
+
|
|
36
|
+
* @applitools/spec-driver-puppeteer bumped to 1.3.1
|
|
37
|
+
|
|
38
|
+
* @applitools/driver bumped to 1.15.2
|
|
39
|
+
|
|
40
|
+
* @applitools/screenshoter bumped to 3.8.17
|
|
41
|
+
|
|
42
|
+
* @applitools/nml-client bumped to 1.5.17
|
|
43
|
+
|
|
44
|
+
* @applitools/tunnel-client bumped to 1.3.2
|
|
45
|
+
|
|
46
|
+
* @applitools/ufg-client bumped to 1.9.9
|
|
47
|
+
|
|
48
|
+
* @applitools/ec-client bumped to 1.7.17
|
|
49
|
+
|
|
50
|
+
* @applitools/core bumped to 4.3.0
|
|
51
|
+
#### Features
|
|
52
|
+
|
|
53
|
+
* add Eyes.getResults method ([#2046](https://github.com/applitools/eyes.sdk.javascript1/issues/2046)) ([#2069](https://github.com/applitools/eyes.sdk.javascript1/issues/2069)) ([4d263e1](https://github.com/applitools/eyes.sdk.javascript1/commit/4d263e19cb5e5708790a1a7ef90ff8f3eee50d91))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
3
58
|
## [1.12.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes@1.11.4...js/eyes@1.12.0) (2023-11-21)
|
|
4
59
|
|
|
5
60
|
|
package/dist/Eyes.js
CHANGED
|
@@ -138,7 +138,8 @@ class Eyes {
|
|
|
138
138
|
this._config = new Configuration_1.ConfigurationData(config, this._spec);
|
|
139
139
|
}
|
|
140
140
|
get isOpen() {
|
|
141
|
-
|
|
141
|
+
var _a;
|
|
142
|
+
return Boolean((_a = this._eyes) === null || _a === void 0 ? void 0 : _a.running);
|
|
142
143
|
}
|
|
143
144
|
getIsOpen() {
|
|
144
145
|
return this.isOpen;
|
|
@@ -393,14 +394,9 @@ class Eyes {
|
|
|
393
394
|
async abort() {
|
|
394
395
|
if (!this.isOpen || this._config.isDisabled)
|
|
395
396
|
return null;
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
return new TestResults_1.TestResultsData({ result, core: this._core });
|
|
400
|
-
}
|
|
401
|
-
finally {
|
|
402
|
-
this._eyes = undefined;
|
|
403
|
-
}
|
|
397
|
+
await this._eyes.abort();
|
|
398
|
+
const [result] = await this._eyes.getResults();
|
|
399
|
+
return new TestResults_1.TestResultsData({ result, core: this._core });
|
|
404
400
|
}
|
|
405
401
|
async abortAsync() {
|
|
406
402
|
var _a;
|
|
@@ -412,7 +408,7 @@ class Eyes {
|
|
|
412
408
|
async abortIfNotClosed() {
|
|
413
409
|
return this.abort();
|
|
414
410
|
}
|
|
415
|
-
async getResults(throwErr =
|
|
411
|
+
async getResults(throwErr = true) {
|
|
416
412
|
var _a;
|
|
417
413
|
if (this._config.isDisabled)
|
|
418
414
|
return null;
|
|
@@ -435,9 +431,6 @@ class Eyes {
|
|
|
435
431
|
}
|
|
436
432
|
throw error;
|
|
437
433
|
}
|
|
438
|
-
finally {
|
|
439
|
-
this._eyes = undefined;
|
|
440
|
-
}
|
|
441
434
|
}
|
|
442
435
|
// #region CONFIG
|
|
443
436
|
async getViewportSize() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"applitools",
|
|
6
6
|
"eyes",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"test": "run --top-level mocha './test/**/*.spec.ts'"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@applitools/core": "4.
|
|
49
|
-
"@applitools/logger": "2.0.
|
|
50
|
-
"@applitools/utils": "1.
|
|
48
|
+
"@applitools/core": "4.3.0",
|
|
49
|
+
"@applitools/logger": "2.0.14",
|
|
50
|
+
"@applitools/utils": "1.7.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@applitools/req": "^1.6.
|
|
53
|
+
"@applitools/req": "^1.6.4",
|
|
54
54
|
"@types/node": "^12.20.55"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|