@applitools/nml-client 1.11.10 → 1.11.12
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 +62 -0
- package/dist/server/requests.js +28 -21
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,67 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.11.12](https://github.com/Applitools-Dev/sdk/compare/js/nml-client@1.11.11...js/nml-client@1.11.12) (2025-12-01)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* @applitools/utils bumped to 1.14.1
|
|
9
|
+
#### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* setup script compatibility with ESM | AD-11756 ([#3363](https://github.com/Applitools-Dev/sdk/issues/3363)) ([d1222f4](https://github.com/Applitools-Dev/sdk/commit/d1222f40a74ab62782bebeeb0cf899aac3f3d3b6))
|
|
12
|
+
* @applitools/logger bumped to 2.2.7
|
|
13
|
+
|
|
14
|
+
* @applitools/req bumped to 1.8.7
|
|
15
|
+
|
|
16
|
+
* @applitools/image bumped to 1.2.6
|
|
17
|
+
|
|
18
|
+
* @applitools/driver bumped to 1.24.3
|
|
19
|
+
|
|
20
|
+
* @applitools/spec-driver-webdriver bumped to 1.5.3
|
|
21
|
+
|
|
22
|
+
* @applitools/core-base bumped to 1.30.1
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [1.11.11](https://github.com/Applitools-Dev/sdk/compare/js/nml-client@1.11.10...js/nml-client@1.11.11) (2025-11-19)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* better nml error messages ([#3311](https://github.com/Applitools-Dev/sdk/issues/3311)) ([3deea01](https://github.com/Applitools-Dev/sdk/commit/3deea0130636c44573adc919b95c1c99e6d194f1))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Dependencies
|
|
34
|
+
|
|
35
|
+
* @applitools/utils bumped to 1.14.0
|
|
36
|
+
#### Features
|
|
37
|
+
|
|
38
|
+
* disable heartbeats whenever no tests are running ([#3344](https://github.com/Applitools-Dev/sdk/issues/3344)) ([b66d28a](https://github.com/Applitools-Dev/sdk/commit/b66d28a7a382f26b68de70c8633c027cb4bdf225))
|
|
39
|
+
* @applitools/core-base bumped to 1.30.0
|
|
40
|
+
#### Features
|
|
41
|
+
|
|
42
|
+
* disable heartbeats whenever no tests are running ([#3344](https://github.com/Applitools-Dev/sdk/issues/3344)) ([b66d28a](https://github.com/Applitools-Dev/sdk/commit/b66d28a7a382f26b68de70c8633c027cb4bdf225))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
#### Bug Fixes
|
|
46
|
+
|
|
47
|
+
* fails to create test with coded dynamic region | AD-11074 ([#3361](https://github.com/Applitools-Dev/sdk/issues/3361)) ([7f8c8cd](https://github.com/Applitools-Dev/sdk/commit/7f8c8cd85c0cd2e5861cd33fbc29c465903258d5))
|
|
48
|
+
* resolved an issue with `matchTimeout` changing `retryTimeout` ([f656f59](https://github.com/Applitools-Dev/sdk/commit/f656f59dbfb7c41fdb569fbc56d2e9daecefb854))
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
* @applitools/logger bumped to 2.2.6
|
|
53
|
+
|
|
54
|
+
* @applitools/req bumped to 1.8.6
|
|
55
|
+
|
|
56
|
+
* @applitools/image bumped to 1.2.5
|
|
57
|
+
|
|
58
|
+
* @applitools/driver bumped to 1.24.2
|
|
59
|
+
|
|
60
|
+
* @applitools/spec-driver-webdriver bumped to 1.5.2
|
|
61
|
+
|
|
62
|
+
* @applitools/test-server bumped to 1.3.5
|
|
63
|
+
|
|
64
|
+
|
|
3
65
|
## [1.11.10](https://github.com/Applitools-Dev/sdk/compare/js/nml-client@1.11.9...js/nml-client@1.11.10) (2025-11-09)
|
|
4
66
|
|
|
5
67
|
|
package/dist/server/requests.js
CHANGED
|
@@ -81,7 +81,7 @@ function makeNMLRequests({ settings, logger: mainLogger, }) {
|
|
|
81
81
|
brokerUrl = result.nextPath;
|
|
82
82
|
}
|
|
83
83
|
async function takeScreenshots({ settings, logger = mainLogger, }) {
|
|
84
|
-
var _a;
|
|
84
|
+
var _a, _b;
|
|
85
85
|
logger = logger.extend(mainLogger, { tags: [`nml-request-${utils.general.shortid()}`] });
|
|
86
86
|
logger.log('Request "takeScreenshots" called with settings', settings);
|
|
87
87
|
const { localEnvironment, renderEnvironments, environmentSettings } = await (0, get_environments_info_1.getNMLEnvironmentsInfo)({
|
|
@@ -114,26 +114,33 @@ function makeNMLRequests({ settings, logger: mainLogger, }) {
|
|
|
114
114
|
let screenshots;
|
|
115
115
|
if (Number(result.protocolVersion) >= 2) {
|
|
116
116
|
logger.log(`Request "takeScreenshots" was performed on applitools lib v${result.nmlVersion} through protocol v${result.protocolVersion} on device`, result.payload.debugInfo);
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
117
|
+
if ((_b = result.payload.result) === null || _b === void 0 ? void 0 : _b.some((res) => res.error)) {
|
|
118
|
+
const errors = result.payload.result.filter((res) => res.error);
|
|
119
|
+
let errMessage = 'There were problems in taking screenshots for';
|
|
120
|
+
if (localEnvironment) {
|
|
121
|
+
errMessage += ` local environment ${JSON.stringify(localEnvironment)}:\n`;
|
|
122
|
+
errMessage += `\t ${JSON.stringify(errors)}`;
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
errMessage += ' environments:';
|
|
126
|
+
errMessage += ` \n\t ${errors
|
|
127
|
+
.map((err, index) => `Environment ${JSON.stringify(renderEnvironments[index])}: ${JSON.stringify(err)}`)
|
|
128
|
+
.join('\n\t')}`;
|
|
129
|
+
}
|
|
130
|
+
throw new Error(errMessage);
|
|
131
|
+
}
|
|
132
|
+
screenshots = renderEnvironments.map((environment, index) => {
|
|
133
|
+
return {
|
|
134
|
+
image: result.payload.result[index].result.screenshotUrl,
|
|
135
|
+
calculateRegions: result.payload.result[index].result.selectorRegions,
|
|
136
|
+
dom: result.payload.result[index].result.dom,
|
|
137
|
+
environment: localEnvironment || environment,
|
|
138
|
+
};
|
|
139
|
+
});
|
|
140
|
+
if (localEnvironment && renderEnvironments.length > 1) {
|
|
141
|
+
logger.warn(`Local environment detected with ${renderEnvironments.length} rendered environment(s). Using local environment ${JSON.stringify(localEnvironment)} and ignoring rendered environments: ${JSON.stringify(renderEnvironments)}. Note - this warning shouldn't appear in normal usage.`);
|
|
142
|
+
screenshots = [screenshots[0]];
|
|
143
|
+
}
|
|
137
144
|
}
|
|
138
145
|
else {
|
|
139
146
|
screenshots = localEnvironment
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/nml-client",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.12",
|
|
4
4
|
"description": "Client to integrate the SDKs to the Native Mobile Library (NML)",
|
|
5
5
|
"homepage": "https://applitools.com",
|
|
6
6
|
"bugs": {
|
|
@@ -36,21 +36,21 @@
|
|
|
36
36
|
"test": "run --top-level mocha './test/**/*.spec.ts' --parallel --jobs ${MOCHA_JOBS:-15}"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@applitools/logger": "2.2.
|
|
40
|
-
"@applitools/req": "1.8.
|
|
41
|
-
"@applitools/utils": "1.
|
|
39
|
+
"@applitools/logger": "2.2.7",
|
|
40
|
+
"@applitools/req": "1.8.7",
|
|
41
|
+
"@applitools/utils": "1.14.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@applitools/core-base": "1.
|
|
45
|
-
"@applitools/spec-driver-webdriver": "^1.5.
|
|
46
|
-
"@applitools/test-server": "^1.3.
|
|
44
|
+
"@applitools/core-base": "1.30.1",
|
|
45
|
+
"@applitools/spec-driver-webdriver": "^1.5.3",
|
|
46
|
+
"@applitools/test-server": "^1.3.5",
|
|
47
47
|
"@applitools/test-utils": "^1.5.17",
|
|
48
48
|
"@types/node": "^12.20.55",
|
|
49
49
|
"nock": "^13.3.2",
|
|
50
50
|
"webdriver": "^7.31.1"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@applitools/core-base": "1.
|
|
53
|
+
"@applitools/core-base": "1.30.1"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
56
|
"node": ">=12.13.0"
|