@applitools/eyes 1.5.2 → 1.6.1
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 +125 -0
- package/dist/Eyes.js +10 -5
- package/dist/enums/DeviceName.js +3 -0
- package/package.json +2 -2
- package/types/enums/DeviceName.d.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,130 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.6.1](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes@1.6.0...js/eyes@1.6.1) (2023-07-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* replaced NML prefixed appium env vars with APPLITOOLS prefixed ([8905b90](https://github.com/applitools/eyes.sdk.javascript1/commit/8905b90e7c4ec6e310f6e52c03bbcc7acf1ff2ab))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* @applitools/core bumped from 3.6.0 to 3.6.1
|
|
14
|
+
#### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* replaced NML prefixed appium env vars with APPLITOOLS prefixed ([8905b90](https://github.com/applitools/eyes.sdk.javascript1/commit/8905b90e7c4ec6e310f6e52c03bbcc7acf1ff2ab))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
* @applitools/driver bumped from 1.13.0 to 1.13.1
|
|
21
|
+
#### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* replaced NML prefixed appium env vars with APPLITOOLS prefixed ([8905b90](https://github.com/applitools/eyes.sdk.javascript1/commit/8905b90e7c4ec6e310f6e52c03bbcc7acf1ff2ab))
|
|
24
|
+
* @applitools/ec-client bumped from 1.6.2 to 1.7.0
|
|
25
|
+
#### Features
|
|
26
|
+
|
|
27
|
+
* added internal function to prepare environment before running tunnels ([3d19ec3](https://github.com/applitools/eyes.sdk.javascript1/commit/3d19ec3b274702ffdf26b766b7351ec1f4b66a6d))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
* @applitools/tunnel-client bumped from 1.0.2 to 1.1.0
|
|
32
|
+
#### Features
|
|
33
|
+
|
|
34
|
+
* added internal function to prepare environment before running tunnels ([3d19ec3](https://github.com/applitools/eyes.sdk.javascript1/commit/3d19ec3b274702ffdf26b766b7351ec1f4b66a6d))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
#### Bug Fixes
|
|
38
|
+
|
|
39
|
+
* prevent tunnel binaries from overriding itself ([5609a36](https://github.com/applitools/eyes.sdk.javascript1/commit/5609a36c93622c9b8eeb4b4ab25f95907df8baa4))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
* @applitools/nml-client bumped from 1.5.1 to 1.5.2
|
|
44
|
+
#### Bug Fixes
|
|
45
|
+
|
|
46
|
+
* replaced NML prefixed appium env vars with APPLITOOLS prefixed ([8905b90](https://github.com/applitools/eyes.sdk.javascript1/commit/8905b90e7c4ec6e310f6e52c03bbcc7acf1ff2ab))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
* @applitools/ufg-client bumped from 1.4.0 to 1.4.1
|
|
51
|
+
#### Bug Fixes
|
|
52
|
+
|
|
53
|
+
* fixed an issue when an inability to freeze a gif image caused sdk crush ([dca9ead](https://github.com/applitools/eyes.sdk.javascript1/commit/dca9eadd2bab39d1fc20b99d997879075691f0ee))
|
|
54
|
+
* fixed issue when sdk crushed due to invalid resource url in ufg mode ([8b44958](https://github.com/applitools/eyes.sdk.javascript1/commit/8b449580a930753dd2735befdcdb4c46e184b2a9))
|
|
55
|
+
* @applitools/spec-driver-webdriver bumped from 1.0.37 to 1.0.38
|
|
56
|
+
|
|
57
|
+
* @applitools/execution-grid-tunnel bumped to 2.1.8
|
|
58
|
+
|
|
59
|
+
* @applitools/screenshoter bumped from 3.8.3 to 3.8.4
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
## [1.6.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes@1.5.2...js/eyes@1.6.0) (2023-07-10)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### Features
|
|
66
|
+
|
|
67
|
+
* added new chrome emulation devices - `Galaxy S21`, `Galaxy S21 Ultra`, and `Galaxy S22 Ultra` ([0dac7f7](https://github.com/applitools/eyes.sdk.javascript1/commit/0dac7f7941558a4e9416f70a104b96d125d38fc7))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### Bug Fixes
|
|
71
|
+
|
|
72
|
+
* adjusted behavior of `nmgOptions` property around different screenshot mods ([2709afa](https://github.com/applitools/eyes.sdk.javascript1/commit/2709afa51c98f89d506d901b04454d9f37bacd87))
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### Dependencies
|
|
76
|
+
|
|
77
|
+
* @applitools/core bumped from 3.5.1 to 3.6.0
|
|
78
|
+
#### Features
|
|
79
|
+
|
|
80
|
+
* ability to skip deserialize dom snapshot ([#1703](https://github.com/applitools/eyes.sdk.javascript1/issues/1703)) ([a461af4](https://github.com/applitools/eyes.sdk.javascript1/commit/a461af4fb72b7cba1ae15a5d20376fd02e7d9003))
|
|
81
|
+
* prevent animated gif images from playing in ufg ([#1721](https://github.com/applitools/eyes.sdk.javascript1/issues/1721)) ([30f39cc](https://github.com/applitools/eyes.sdk.javascript1/commit/30f39cc8ef2cdfa1d85bd7a0037b818db1b52e1b))
|
|
82
|
+
* support custom property per renderer ([#1715](https://github.com/applitools/eyes.sdk.javascript1/issues/1715)) ([8cf6b1f](https://github.com/applitools/eyes.sdk.javascript1/commit/8cf6b1fb0563b2485ca18eebc2efd236c2287db8))
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
* @applitools/core-base bumped from 1.3.0 to 1.4.0
|
|
87
|
+
#### Features
|
|
88
|
+
|
|
89
|
+
* support custom property per renderer ([#1715](https://github.com/applitools/eyes.sdk.javascript1/issues/1715)) ([8cf6b1f](https://github.com/applitools/eyes.sdk.javascript1/commit/8cf6b1fb0563b2485ca18eebc2efd236c2287db8))
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
* @applitools/image bumped from 1.0.36 to 1.1.0
|
|
94
|
+
#### Features
|
|
95
|
+
|
|
96
|
+
* prevent animated gif images from playing in ufg ([#1721](https://github.com/applitools/eyes.sdk.javascript1/issues/1721)) ([30f39cc](https://github.com/applitools/eyes.sdk.javascript1/commit/30f39cc8ef2cdfa1d85bd7a0037b818db1b52e1b))
|
|
97
|
+
* @applitools/ec-client bumped from 1.6.1 to 1.6.2
|
|
98
|
+
#### Bug Fixes
|
|
99
|
+
|
|
100
|
+
* fixed issue that caused creation of unnecessary tunnels ([b38fe37](https://github.com/applitools/eyes.sdk.javascript1/commit/b38fe3754f97c5f312ceffd74406255654466ab7))
|
|
101
|
+
* start tunnels with proper regional server ([2a34ed8](https://github.com/applitools/eyes.sdk.javascript1/commit/2a34ed8cd72dc9ac54957348cbe8ba9e67032340))
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
* @applitools/tunnel-client bumped from 1.0.1 to 1.0.2
|
|
106
|
+
#### Bug Fixes
|
|
107
|
+
|
|
108
|
+
* start tunnels with proper regional server ([2a34ed8](https://github.com/applitools/eyes.sdk.javascript1/commit/2a34ed8cd72dc9ac54957348cbe8ba9e67032340))
|
|
109
|
+
* @applitools/ufg-client bumped from 1.3.0 to 1.4.0
|
|
110
|
+
#### Features
|
|
111
|
+
|
|
112
|
+
* ability to skip deserialize dom snapshot ([#1703](https://github.com/applitools/eyes.sdk.javascript1/issues/1703)) ([a461af4](https://github.com/applitools/eyes.sdk.javascript1/commit/a461af4fb72b7cba1ae15a5d20376fd02e7d9003))
|
|
113
|
+
* add support for resource fetching through eg tunnel ([3daa4da](https://github.com/applitools/eyes.sdk.javascript1/commit/3daa4da975cbe23ffb33bb3e9f5f76732ead1075))
|
|
114
|
+
* added new chrome emulation devices - `Galaxy S21`, `Galaxy S21 Ultra`, and `Galaxy S22 Ultra` ([0dac7f7](https://github.com/applitools/eyes.sdk.javascript1/commit/0dac7f7941558a4e9416f70a104b96d125d38fc7))
|
|
115
|
+
* prevent animated gif images from playing in ufg ([#1721](https://github.com/applitools/eyes.sdk.javascript1/issues/1721)) ([30f39cc](https://github.com/applitools/eyes.sdk.javascript1/commit/30f39cc8ef2cdfa1d85bd7a0037b818db1b52e1b))
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
#### Bug Fixes
|
|
119
|
+
|
|
120
|
+
* add support for resource fetching through eg tunnel ([a0b98e3](https://github.com/applitools/eyes.sdk.javascript1/commit/a0b98e364cf95bf6bed84c1afe3376384d781717))
|
|
121
|
+
* add support for resource fetching through eg tunnel ([3daa4da](https://github.com/applitools/eyes.sdk.javascript1/commit/3daa4da975cbe23ffb33bb3e9f5f76732ead1075))
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
* @applitools/screenshoter bumped from 3.8.2 to 3.8.3
|
|
126
|
+
|
|
127
|
+
|
|
3
128
|
## [1.5.2](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes@1.5.1...js/eyes@1.5.2) (2023-07-05)
|
|
4
129
|
|
|
5
130
|
|
package/dist/Eyes.js
CHANGED
|
@@ -64,8 +64,8 @@ class Eyes {
|
|
|
64
64
|
static setMobileCapabilities(capabilities, config) {
|
|
65
65
|
var _a, _b;
|
|
66
66
|
const envs = {
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
APPLITOOLS_SERVER_URL: (_a = config === null || config === void 0 ? void 0 : config.serverUrl) !== null && _a !== void 0 ? _a : utils.general.getEnvValue('SERVER_URL'),
|
|
68
|
+
APPLITOOLS_API_KEY: (_b = config === null || config === void 0 ? void 0 : config.apiKey) !== null && _b !== void 0 ? _b : utils.general.getEnvValue('API_KEY'),
|
|
69
69
|
};
|
|
70
70
|
if (config === null || config === void 0 ? void 0 : config.proxy) {
|
|
71
71
|
const url = new URL(config.proxy.url);
|
|
@@ -73,14 +73,14 @@ class Eyes {
|
|
|
73
73
|
url.username = config.proxy.username;
|
|
74
74
|
if (config.proxy.password)
|
|
75
75
|
url.password = config.proxy.password;
|
|
76
|
-
envs.
|
|
76
|
+
envs.APPLITOOLS_PROXY_URL = url.toString();
|
|
77
77
|
}
|
|
78
78
|
return Object.assign(capabilities, {
|
|
79
79
|
'appium:optionalIntentArguments': `--es APPLITOOLS '${JSON.stringify(envs)}'`,
|
|
80
80
|
'appium:processArguments': JSON.stringify({
|
|
81
81
|
args: [],
|
|
82
82
|
env: {
|
|
83
|
-
DYLD_INSERT_LIBRARIES: '@executable_path/Frameworks/
|
|
83
|
+
DYLD_INSERT_LIBRARIES: '@executable_path/Frameworks/Applitools_iOS.xcframework/ios-arm64/Applitools_iOS.framework/Applitools_iOS:@executable_path/Frameworks/Applitools_iOS.xcframework/ios-arm64_x86_64-simulator/Applitools_iOS.framework/Applitools_iOS',
|
|
84
84
|
...envs,
|
|
85
85
|
},
|
|
86
86
|
}),
|
|
@@ -257,7 +257,12 @@ class Eyes {
|
|
|
257
257
|
const config = this._config.toJSON();
|
|
258
258
|
// TODO remove when major version of sdk should be released
|
|
259
259
|
(_a = (_c = config.screenshot).fully) !== null && _a !== void 0 ? _a : (_c.fully = false);
|
|
260
|
-
|
|
260
|
+
let type;
|
|
261
|
+
if (this._runner.type === 'ufg' &&
|
|
262
|
+
((_b = settings === null || settings === void 0 ? void 0 : settings.nmgOptions) === null || _b === void 0 ? void 0 : _b.nonNMGCheck) === 'addToAllDevices') {
|
|
263
|
+
type = 'classic';
|
|
264
|
+
settings.screenshotMode = 'default';
|
|
265
|
+
}
|
|
261
266
|
const [result] = await this._eyes.check({ type, target, settings, config });
|
|
262
267
|
return new MatchResult_1.MatchResultData(result);
|
|
263
268
|
}
|
package/dist/enums/DeviceName.js
CHANGED
|
@@ -22,7 +22,10 @@ var DeviceNameEnum;
|
|
|
22
22
|
DeviceNameEnum["Galaxy_S10"] = "Galaxy S10";
|
|
23
23
|
DeviceNameEnum["Galaxy_S10_Plus"] = "Galaxy S10 Plus";
|
|
24
24
|
DeviceNameEnum["Galaxy_S20"] = "Galaxy S20";
|
|
25
|
+
DeviceNameEnum["Galaxy_S21"] = "Galaxy S21";
|
|
26
|
+
DeviceNameEnum["Galaxy_S21_Ultra"] = "Galaxy S21 Ultra";
|
|
25
27
|
DeviceNameEnum["Galaxy_S22"] = "Galaxy S22";
|
|
28
|
+
DeviceNameEnum["Galaxy_S22_Ultra"] = "Galaxy S22 Ultra";
|
|
26
29
|
DeviceNameEnum["Galaxy_Tab_S7"] = "Galaxy Tab S7";
|
|
27
30
|
DeviceNameEnum["iPad"] = "iPad";
|
|
28
31
|
DeviceNameEnum["iPad_6th_Gen"] = "iPad 6th Gen";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"applitools",
|
|
6
6
|
"eyes",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"test": "run --top-level mocha './test/**/*.spec.ts'"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@applitools/core": "3.
|
|
48
|
+
"@applitools/core": "3.6.1",
|
|
49
49
|
"@applitools/logger": "2.0.5",
|
|
50
50
|
"@applitools/utils": "1.5.0"
|
|
51
51
|
},
|
|
@@ -18,7 +18,10 @@ export declare enum DeviceNameEnum {
|
|
|
18
18
|
Galaxy_S10 = "Galaxy S10",
|
|
19
19
|
Galaxy_S10_Plus = "Galaxy S10 Plus",
|
|
20
20
|
Galaxy_S20 = "Galaxy S20",
|
|
21
|
+
Galaxy_S21 = "Galaxy S21",
|
|
22
|
+
Galaxy_S21_Ultra = "Galaxy S21 Ultra",
|
|
21
23
|
Galaxy_S22 = "Galaxy S22",
|
|
24
|
+
Galaxy_S22_Ultra = "Galaxy S22 Ultra",
|
|
22
25
|
Galaxy_Tab_S7 = "Galaxy Tab S7",
|
|
23
26
|
iPad = "iPad",
|
|
24
27
|
iPad_6th_Gen = "iPad 6th Gen",
|