@applitools/eyes-images 4.23.37 → 4.24.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 +153 -0
- package/dist/api.js +5 -1
- package/dist/extract-environment.js +15 -0
- package/package.json +4 -4
- package/types/index.d.ts +12 -24
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,158 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.24.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-images@4.23.38...js/eyes-images@4.24.0) (2023-11-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* added notification about outdated sdk version ([#2012](https://github.com/applitools/eyes.sdk.javascript1/issues/2012)) ([0f0a646](https://github.com/applitools/eyes.sdk.javascript1/commit/0f0a6462a56e7c97f9a22173c3b63af91e220adb))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* @applitools/utils bumped to 1.6.3
|
|
14
|
+
#### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* don't throw error for missing configuration file ([#2034](https://github.com/applitools/eyes.sdk.javascript1/issues/2034)) ([d084e7b](https://github.com/applitools/eyes.sdk.javascript1/commit/d084e7bf6e1727e3969622b4e597881f18241eb3))
|
|
17
|
+
* @applitools/socket bumped to 1.1.13
|
|
18
|
+
|
|
19
|
+
* @applitools/dom-snapshot bumped to 4.7.14
|
|
20
|
+
#### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* preserve css declarations order in dom-snapshot ([#2037](https://github.com/applitools/eyes.sdk.javascript1/issues/2037)) ([1381851](https://github.com/applitools/eyes.sdk.javascript1/commit/1381851d46f28ea7e7724025c4eab33c81c4e144))
|
|
23
|
+
* @applitools/spec-driver-webdriver bumped to 1.0.50
|
|
24
|
+
#### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* send devtool commands in chromium ([#2039](https://github.com/applitools/eyes.sdk.javascript1/issues/2039)) ([ff42043](https://github.com/applitools/eyes.sdk.javascript1/commit/ff42043c3d9f110eb7b22ab1a8448d77859923b4))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
* @applitools/core bumped to 4.2.0
|
|
31
|
+
#### Features
|
|
32
|
+
|
|
33
|
+
* added notification about outdated sdk version ([#2012](https://github.com/applitools/eyes.sdk.javascript1/issues/2012)) ([0f0a646](https://github.com/applitools/eyes.sdk.javascript1/commit/0f0a6462a56e7c97f9a22173c3b63af91e220adb))
|
|
34
|
+
* log driver environment info to splank ([#2023](https://github.com/applitools/eyes.sdk.javascript1/issues/2023)) ([11d0546](https://github.com/applitools/eyes.sdk.javascript1/commit/11d0546e76962b4c231e140b0229b8402da27f69))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
#### Bug Fixes
|
|
38
|
+
|
|
39
|
+
* return result when error in the ufg ([#2020](https://github.com/applitools/eyes.sdk.javascript1/issues/2020)) ([28cdcc5](https://github.com/applitools/eyes.sdk.javascript1/commit/28cdcc5a859641d0edde032165c5068fcc580c8d))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
* @applitools/spec-driver-selenium bumped to 1.5.64
|
|
44
|
+
|
|
45
|
+
* @applitools/spec-driver-puppeteer bumped to 1.3.0
|
|
46
|
+
#### Features
|
|
47
|
+
|
|
48
|
+
* added notification about outdated sdk version ([#2012](https://github.com/applitools/eyes.sdk.javascript1/issues/2012)) ([0f0a646](https://github.com/applitools/eyes.sdk.javascript1/commit/0f0a6462a56e7c97f9a22173c3b63af91e220adb))
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
* @applitools/screenshoter bumped to 3.8.16
|
|
53
|
+
|
|
54
|
+
* @applitools/tunnel-client bumped to 1.3.1
|
|
55
|
+
|
|
56
|
+
* @applitools/ec-client bumped to 1.7.16
|
|
57
|
+
|
|
58
|
+
* @applitools/core-base bumped to 1.7.3
|
|
59
|
+
#### Bug Fixes
|
|
60
|
+
|
|
61
|
+
* remove connection timeout in case of a long running tasks ([#2006](https://github.com/applitools/eyes.sdk.javascript1/issues/2006)) ([49a596a](https://github.com/applitools/eyes.sdk.javascript1/commit/49a596ac1b022a66b5c07ecfee458cc061891ce0))
|
|
62
|
+
* return result when error in the ufg ([#2020](https://github.com/applitools/eyes.sdk.javascript1/issues/2020)) ([28cdcc5](https://github.com/applitools/eyes.sdk.javascript1/commit/28cdcc5a859641d0edde032165c5068fcc580c8d))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
* @applitools/logger bumped to 2.0.13
|
|
67
|
+
|
|
68
|
+
* @applitools/req bumped to 1.6.3
|
|
69
|
+
|
|
70
|
+
* @applitools/image bumped to 1.1.8
|
|
71
|
+
|
|
72
|
+
* @applitools/driver bumped to 1.15.1
|
|
73
|
+
|
|
74
|
+
* @applitools/nml-client bumped to 1.5.16
|
|
75
|
+
|
|
76
|
+
* @applitools/ufg-client bumped to 1.9.8
|
|
77
|
+
|
|
78
|
+
* @applitools/eyes bumped to 1.12.0
|
|
79
|
+
#### Features
|
|
80
|
+
|
|
81
|
+
* added `enableEyesLogs` configuration to the eyes service ([639ca8a](https://github.com/applitools/eyes.sdk.javascript1/commit/639ca8a021008d06fc09d19ca58ac3d00a18e4c3))
|
|
82
|
+
* added `useExecutionCloud` configuration to the eyes service ([#2033](https://github.com/applitools/eyes.sdk.javascript1/issues/2033)) ([639ca8a](https://github.com/applitools/eyes.sdk.javascript1/commit/639ca8a021008d06fc09d19ca58ac3d00a18e4c3))
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
#### Bug Fixes
|
|
86
|
+
|
|
87
|
+
* error to unknown type in exception ([#2035](https://github.com/applitools/eyes.sdk.javascript1/issues/2035)) ([16d78c3](https://github.com/applitools/eyes.sdk.javascript1/commit/16d78c3cce90a5cb50cc2aa4e9ab6a58b7b93f89))
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
## [4.23.38](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-images@4.23.37...js/eyes-images@4.23.38) (2023-11-07)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Dependencies
|
|
96
|
+
|
|
97
|
+
* @applitools/dom-shared bumped to 1.0.11
|
|
98
|
+
#### Bug Fixes
|
|
99
|
+
|
|
100
|
+
* (java/eyes-appium-java5): fix incorrect stitchMode mapping in checkSettings ([c70428e](https://github.com/applitools/eyes.sdk.javascript1/commit/c70428ec83e26b8b5e398ff11814f8376ca97d56))
|
|
101
|
+
* @applitools/dom-capture bumped to 11.2.4
|
|
102
|
+
#### Bug Fixes
|
|
103
|
+
|
|
104
|
+
* (java/eyes-appium-java5): fix incorrect stitchMode mapping in checkSettings ([c70428e](https://github.com/applitools/eyes.sdk.javascript1/commit/c70428ec83e26b8b5e398ff11814f8376ca97d56))
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
* @applitools/dom-snapshot bumped to 4.7.13
|
|
109
|
+
#### Bug Fixes
|
|
110
|
+
|
|
111
|
+
* (java/eyes-appium-java5): fix incorrect stitchMode mapping in checkSettings ([c70428e](https://github.com/applitools/eyes.sdk.javascript1/commit/c70428ec83e26b8b5e398ff11814f8376ca97d56))
|
|
112
|
+
* handled duplicated style properties in inline style tags ([#2014](https://github.com/applitools/eyes.sdk.javascript1/issues/2014)) ([2f8bada](https://github.com/applitools/eyes.sdk.javascript1/commit/2f8bada9cd44c65a69e54cbd08f57534632f12d2))
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
* @applitools/spec-driver-webdriver bumped to 1.0.49
|
|
117
|
+
|
|
118
|
+
* @applitools/spec-driver-selenium bumped to 1.5.63
|
|
119
|
+
|
|
120
|
+
* @applitools/spec-driver-puppeteer bumped to 1.2.5
|
|
121
|
+
|
|
122
|
+
* @applitools/driver bumped to 1.15.0
|
|
123
|
+
#### Features
|
|
124
|
+
|
|
125
|
+
* added warning when driver used with capabilities that may conflict with applitools lib workflow ([#2011](https://github.com/applitools/eyes.sdk.javascript1/issues/2011)) ([081006d](https://github.com/applitools/eyes.sdk.javascript1/commit/081006d879894db03a2713129b66586496b6eb02))
|
|
126
|
+
* @applitools/ufg-client bumped to 1.9.7
|
|
127
|
+
#### Bug Fixes
|
|
128
|
+
|
|
129
|
+
* added retries on ufg requests that respond with 503 status code ([7d78917](https://github.com/applitools/eyes.sdk.javascript1/commit/7d78917d559fa182c6723ca34cef2118cf08a036))
|
|
130
|
+
* @applitools/core bumped to 4.1.0
|
|
131
|
+
#### Features
|
|
132
|
+
|
|
133
|
+
* added warning when driver used with capabilities that may conflict with applitools lib workflow ([#2011](https://github.com/applitools/eyes.sdk.javascript1/issues/2011)) ([081006d](https://github.com/applitools/eyes.sdk.javascript1/commit/081006d879894db03a2713129b66586496b6eb02))
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
#### Bug Fixes
|
|
137
|
+
|
|
138
|
+
* fixed issue that caused dom snapshots to be taken for different viewport sizes when layout breakpoints were explicitly turned off ([4121876](https://github.com/applitools/eyes.sdk.javascript1/commit/4121876189f133b6023cfea52ca91c02c31079fb))
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
* @applitools/screenshoter bumped to 3.8.15
|
|
143
|
+
|
|
144
|
+
* @applitools/nml-client bumped to 1.5.15
|
|
145
|
+
|
|
146
|
+
* @applitools/ec-client bumped to 1.7.15
|
|
147
|
+
|
|
148
|
+
* @applitools/eyes bumped to 1.11.4
|
|
149
|
+
#### Bug Fixes
|
|
150
|
+
|
|
151
|
+
* fixed issue when w3c properties were added to legacy capabilities object in `Eyes.setMobileCapabilities` method ([94d785f](https://github.com/applitools/eyes.sdk.javascript1/commit/94d785f0428df101c207d6f09a55c46f2bdbf19e))
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
3
156
|
## [4.23.37](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-images@4.23.36...js/eyes-images@4.23.37) (2023-10-30)
|
|
4
157
|
|
|
5
158
|
|
package/dist/api.js
CHANGED
|
@@ -27,9 +27,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.closeBatch = exports.BatchClose = exports.Target = exports.CheckSettings = exports.CheckSettingsImage = exports.CheckSettingsAutomation = exports.Configuration = exports.Eyes = void 0;
|
|
30
|
+
const extract_environment_1 = require("./extract-environment");
|
|
30
31
|
const eyes = __importStar(require("@applitools/eyes"));
|
|
31
32
|
__exportStar(require("@applitools/eyes"), exports);
|
|
32
|
-
const sdk = {
|
|
33
|
+
const sdk = {
|
|
34
|
+
agentId: `eyes.images.javascript/${require('../package.json').version}`,
|
|
35
|
+
environment: (0, extract_environment_1.extractEnvironment)(),
|
|
36
|
+
};
|
|
33
37
|
class Eyes extends eyes.Eyes {
|
|
34
38
|
}
|
|
35
39
|
exports.Eyes = Eyes;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.extractEnvironment = void 0;
|
|
4
|
+
function extractEnvironment() {
|
|
5
|
+
let sdk = undefined;
|
|
6
|
+
try {
|
|
7
|
+
const { name, version } = require('../package.json');
|
|
8
|
+
sdk = { lang: 'js', name, currentVersion: version };
|
|
9
|
+
}
|
|
10
|
+
catch {
|
|
11
|
+
// NOTE: ignore error
|
|
12
|
+
}
|
|
13
|
+
return { sdk };
|
|
14
|
+
}
|
|
15
|
+
exports.extractEnvironment = extractEnvironment;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-images",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.24.0",
|
|
4
4
|
"description": "The simplest implementation of Applitools Eyes SDK, uploads images for validation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eyes-images",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"test:coverage": "APPLITOOLS_SHOW_LOGS=true APPLITOOLS_LOG_FILE=\"./logs/$(uuidgen).log\" APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-images' APPLITOOLS_BATCH_ID=$(uuidgen) MOCHA_GROUP=coverage run --top-level mocha './test/generated-coverage/*.spec.js' --parallel --jobs ${MOCHA_JOBS:-15}"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@applitools/eyes": "1.
|
|
43
|
+
"@applitools/eyes": "1.12.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@applitools/api-extractor": "^1.2.22",
|
|
47
|
-
"@applitools/bongo": "^5.7.
|
|
48
|
-
"@applitools/generic": "^3.5.
|
|
47
|
+
"@applitools/bongo": "^5.7.6",
|
|
48
|
+
"@applitools/generic": "^3.5.2",
|
|
49
49
|
"@applitools/test-utils": "^1.5.17",
|
|
50
50
|
"@types/node": "^12.20.55"
|
|
51
51
|
},
|
package/types/index.d.ts
CHANGED
|
@@ -35,14 +35,7 @@ export class Eyes {
|
|
|
35
35
|
open(appName?: undefined | string, testName?: undefined | string, viewportSize?: undefined | RectangleSizePlain, sessionType?: undefined | SessionTypePlain): Promise<void>;
|
|
36
36
|
check(name: string, checkSettings: CheckSettingsAutomation): Promise<MatchResult>;
|
|
37
37
|
check(name: string, checkSettings: CheckSettingsImage): Promise<MatchResult>;
|
|
38
|
-
check(target:
|
|
39
|
-
image: string | Buffer | URL;
|
|
40
|
-
name?: undefined | string;
|
|
41
|
-
dom?: undefined | string;
|
|
42
|
-
locationInViewport?: undefined | LocationPlain;
|
|
43
|
-
locationInView?: undefined | LocationPlain;
|
|
44
|
-
fullViewSize?: undefined | RectangleSizePlain;
|
|
45
|
-
}, checkSettings?: undefined | CheckSettingsImagePlain): Promise<MatchResult>;
|
|
38
|
+
check(target: Image, checkSettings?: undefined | CheckSettingsImagePlain): Promise<MatchResult>;
|
|
46
39
|
check(checkSettings?: undefined | CheckSettingsAutomationPlain): Promise<MatchResult>;
|
|
47
40
|
checkWindow(name?: undefined | string, timeout?: undefined | number, fully?: undefined | boolean): Promise<MatchResult>;
|
|
48
41
|
checkFrame(element: number, timeout?: undefined | number, name?: undefined | string): Promise<MatchResult>;
|
|
@@ -100,6 +93,7 @@ export class Eyes {
|
|
|
100
93
|
abort(): Promise<TestResults>;
|
|
101
94
|
abortAsync(): Promise<void>;
|
|
102
95
|
abortIfNotClosed(): Promise<TestResultsPlain>;
|
|
96
|
+
getResults(throwErr?: undefined | boolean): Promise<Array<TestResults>>;
|
|
103
97
|
getViewportSize(): Promise<RectangleSize>;
|
|
104
98
|
setViewportSize(size: RectangleSizePlain): Promise<void>;
|
|
105
99
|
getScrollRootElement(): EyesSelector<never>;
|
|
@@ -628,22 +622,8 @@ export class CheckSettingsAutomation {
|
|
|
628
622
|
variationGroupId(variationGroupId: string): CheckSettingsAutomation;
|
|
629
623
|
}
|
|
630
624
|
export class CheckSettingsImage {
|
|
631
|
-
constructor(settings?: undefined | CheckSettingsImage, target?: undefined |
|
|
632
|
-
|
|
633
|
-
name?: undefined | string;
|
|
634
|
-
dom?: undefined | string;
|
|
635
|
-
locationInViewport?: undefined | LocationPlain;
|
|
636
|
-
locationInView?: undefined | LocationPlain;
|
|
637
|
-
fullViewSize?: undefined | RectangleSizePlain;
|
|
638
|
-
});
|
|
639
|
-
constructor(settings?: undefined | CheckSettingsImagePlain, target?: undefined | {
|
|
640
|
-
image: string | Buffer | URL;
|
|
641
|
-
name?: undefined | string;
|
|
642
|
-
dom?: undefined | string;
|
|
643
|
-
locationInViewport?: undefined | LocationPlain;
|
|
644
|
-
locationInView?: undefined | LocationPlain;
|
|
645
|
-
fullViewSize?: undefined | RectangleSizePlain;
|
|
646
|
-
});
|
|
625
|
+
constructor(settings?: undefined | CheckSettingsImage, target?: undefined | Image);
|
|
626
|
+
constructor(settings?: undefined | CheckSettingsImagePlain, target?: undefined | Image);
|
|
647
627
|
image(image: string): CheckSettingsImage;
|
|
648
628
|
image(image: Buffer): CheckSettingsImage;
|
|
649
629
|
image(image: URL): CheckSettingsImage;
|
|
@@ -1122,6 +1102,14 @@ export class BatchInfo implements Required<BatchInfoPlain> {
|
|
|
1122
1102
|
addProperty(name: string, value: string): BatchInfo;
|
|
1123
1103
|
addProperty(prop: PropertyDataPlain): BatchInfo;
|
|
1124
1104
|
}
|
|
1105
|
+
export type Image = {
|
|
1106
|
+
image: string | Buffer | URL;
|
|
1107
|
+
name?: undefined | string;
|
|
1108
|
+
dom?: undefined | string;
|
|
1109
|
+
locationInViewport?: undefined | LocationPlain;
|
|
1110
|
+
locationInView?: undefined | LocationPlain;
|
|
1111
|
+
fullViewSize?: undefined | RectangleSizePlain;
|
|
1112
|
+
};
|
|
1125
1113
|
export type CheckSettingsImagePlain = {
|
|
1126
1114
|
name?: undefined | string;
|
|
1127
1115
|
region?: undefined | RegionPlain;
|