@applitools/core 4.57.2 → 4.58.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 +73 -0
- package/dist/automation/get-nml-client.js +5 -0
- package/dist/classic/check-and-close.js +1 -0
- package/dist/classic/check.js +3 -1
- package/dist/ufg/check-and-close.js +1 -0
- package/dist/ufg/check.js +1 -0
- package/dist/ufg/take-snapshots.js +2 -0
- package/package.json +15 -15
- package/types/ufg/utils/generate-safe-selectors.d.ts +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,78 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.58.1](https://github.com/Applitools-Dev/sdk/compare/js/core@4.58.0...js/core@4.58.1) (2026-03-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* @applitools/nml-client bumped to 1.11.21
|
|
9
|
+
|
|
10
|
+
* @applitools/core-base bumped to 1.32.3
|
|
11
|
+
#### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* pass gzip content encoding | FLD-4293 ([#3649](https://github.com/Applitools-Dev/sdk/issues/3649)) ([b78ebaa](https://github.com/Applitools-Dev/sdk/commit/b78ebaa0bb0d9aeae0d5b7031d320ca10b5f608b))
|
|
14
|
+
* @applitools/ec-client bumped to 1.12.23
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [4.58.0](https://github.com/Applitools-Dev/sdk/compare/js/core@4.57.2...js/core@4.58.0) (2026-03-12)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* support coded regions within iframes and shadow DOM | FLD-4019 ([#3542](https://github.com/Applitools-Dev/sdk/issues/3542)) ([7c5639a](https://github.com/Applitools-Dev/sdk/commit/7c5639a8a4c135bc9331d9ff93f1824906549568))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* enhance NML error messages for better user-facing diagnostics | FLD-4279 ([#3622](https://github.com/Applitools-Dev/sdk/issues/3622)) ([2aef039](https://github.com/Applitools-Dev/sdk/commit/2aef0395875fd0ff0b4f657d769bda23d66660ad))
|
|
28
|
+
* logEventBatch leaks to console | FLD-4175 ([#3608](https://github.com/Applitools-Dev/sdk/issues/3608)) ([f749d28](https://github.com/Applitools-Dev/sdk/commit/f749d287bf8a8e91ab819c04b13f8246f3d3a244))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Dependencies
|
|
32
|
+
|
|
33
|
+
* @applitools/dom-snapshot bumped to 4.16.0
|
|
34
|
+
#### Features
|
|
35
|
+
|
|
36
|
+
* support coded regions within iframes and shadow DOM | FLD-4019 ([#3542](https://github.com/Applitools-Dev/sdk/issues/3542)) ([7c5639a](https://github.com/Applitools-Dev/sdk/commit/7c5639a8a4c135bc9331d9ff93f1824906549568))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
* @applitools/snippets bumped to 2.8.0
|
|
41
|
+
#### Features
|
|
42
|
+
|
|
43
|
+
* support coded regions within iframes and shadow DOM | FLD-4019 ([#3542](https://github.com/Applitools-Dev/sdk/issues/3542)) ([7c5639a](https://github.com/Applitools-Dev/sdk/commit/7c5639a8a4c135bc9331d9ff93f1824906549568))
|
|
44
|
+
* @applitools/dom-capture bumped to 11.6.12
|
|
45
|
+
#### Bug Fixes
|
|
46
|
+
|
|
47
|
+
* prevent [object Object] in DOM capture for CORS iframes | FLD-4181 ([#3620](https://github.com/Applitools-Dev/sdk/issues/3620)) ([afe91e7](https://github.com/Applitools-Dev/sdk/commit/afe91e7b26e9ad5d37d2098b17ecf139794075ef))
|
|
48
|
+
* @applitools/driver bumped to 1.25.3
|
|
49
|
+
#### Bug Fixes
|
|
50
|
+
|
|
51
|
+
* enhance NML error messages for better user-facing diagnostics | FLD-4279 ([#3622](https://github.com/Applitools-Dev/sdk/issues/3622)) ([2aef039](https://github.com/Applitools-Dev/sdk/commit/2aef0395875fd0ff0b4f657d769bda23d66660ad))
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
* @applitools/ufg-client bumped to 1.20.0
|
|
56
|
+
#### Features
|
|
57
|
+
|
|
58
|
+
* support coded regions within iframes and shadow DOM | FLD-4019 ([#3542](https://github.com/Applitools-Dev/sdk/issues/3542)) ([7c5639a](https://github.com/Applitools-Dev/sdk/commit/7c5639a8a4c135bc9331d9ff93f1824906549568))
|
|
59
|
+
* @applitools/spec-driver-webdriver bumped to 1.5.8
|
|
60
|
+
|
|
61
|
+
* @applitools/spec-driver-selenium bumped to 1.7.14
|
|
62
|
+
|
|
63
|
+
* @applitools/spec-driver-puppeteer bumped to 1.7.3
|
|
64
|
+
|
|
65
|
+
* @applitools/screenshoter bumped to 3.12.16
|
|
66
|
+
|
|
67
|
+
* @applitools/nml-client bumped to 1.11.20
|
|
68
|
+
|
|
69
|
+
* @applitools/core-base bumped to 1.32.2
|
|
70
|
+
#### Bug Fixes
|
|
71
|
+
|
|
72
|
+
* logEventBatch leaks to console | FLD-4175 ([#3608](https://github.com/Applitools-Dev/sdk/issues/3608)) ([f749d28](https://github.com/Applitools-Dev/sdk/commit/f749d287bf8a8e91ab819c04b13f8246f3d3a244))
|
|
73
|
+
* @applitools/ec-client bumped to 1.12.22
|
|
74
|
+
|
|
75
|
+
|
|
3
76
|
## [4.57.2](https://github.com/Applitools-Dev/sdk/compare/js/core@4.57.1...js/core@4.57.2) (2026-03-08)
|
|
4
77
|
|
|
5
78
|
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.makeGetNMLClient = exports.clearNMLClients = void 0;
|
|
4
4
|
const nml_client_1 = require("@applitools/nml-client");
|
|
5
|
+
const utils_1 = require("@applitools/utils");
|
|
5
6
|
const clients = new Map();
|
|
6
7
|
// for tests
|
|
7
8
|
function clearNMLClients() {
|
|
@@ -27,6 +28,10 @@ function makeGetNMLClient({ client, logger: mainLogger }) {
|
|
|
27
28
|
const brokerUrl = await driver.extractBrokerUrl();
|
|
28
29
|
if (!brokerUrl)
|
|
29
30
|
throw new Error('Unable to extract broker url from the device');
|
|
31
|
+
if (utils_1.types.has(brokerUrl, 'error')) {
|
|
32
|
+
logger.error('Broker url extraction has failed with error', brokerUrl.error);
|
|
33
|
+
throw new Error(brokerUrl.error);
|
|
34
|
+
}
|
|
30
35
|
const nmlClient = (0, nml_client_1.makeNMLClient)({ settings: { brokerUrl, ...settings }, logger });
|
|
31
36
|
clients.set(cacheKey, nmlClient);
|
|
32
37
|
return nmlClient;
|
package/dist/classic/check.js
CHANGED
|
@@ -138,7 +138,7 @@ function makeCheck({ eyes, target: defaultTarget, environments: defaultEnvironme
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
exports.makeCheck = makeCheck;
|
|
141
|
-
async function logAmmutabilityIfNeeded({ eyes, baseEyes, settings, }) {
|
|
141
|
+
async function logAmmutabilityIfNeeded({ eyes, baseEyes, settings, logger, }) {
|
|
142
142
|
var _a;
|
|
143
143
|
if (settings.assumesMutability) {
|
|
144
144
|
await eyes.core.logEvent({
|
|
@@ -163,6 +163,7 @@ async function logAmmutabilityIfNeeded({ eyes, baseEyes, settings, }) {
|
|
|
163
163
|
},
|
|
164
164
|
...eyes.test.eyesServer,
|
|
165
165
|
},
|
|
166
|
+
logger,
|
|
166
167
|
});
|
|
167
168
|
settings.assumesMutability = false; // prevent from logging this message again for the same check
|
|
168
169
|
}
|
|
@@ -180,6 +181,7 @@ async function checkEnvironment({ eyes, driver, target, environment, signal, log
|
|
|
180
181
|
eyes,
|
|
181
182
|
baseEyes,
|
|
182
183
|
settings,
|
|
184
|
+
logger: environmentLogger,
|
|
183
185
|
});
|
|
184
186
|
try {
|
|
185
187
|
if (signal === null || signal === void 0 ? void 0 : signal.aborted) {
|
package/dist/ufg/check.js
CHANGED
|
@@ -113,6 +113,7 @@ function makeTakeSnapshots({ core, spec, fetchConcurrency, signal, logger: mainL
|
|
|
113
113
|
},
|
|
114
114
|
...account.eyesServer,
|
|
115
115
|
},
|
|
116
|
+
logger,
|
|
116
117
|
});
|
|
117
118
|
}
|
|
118
119
|
}
|
|
@@ -138,6 +139,7 @@ function makeTakeSnapshots({ core, spec, fetchConcurrency, signal, logger: mainL
|
|
|
138
139
|
},
|
|
139
140
|
...account.eyesServer,
|
|
140
141
|
},
|
|
142
|
+
logger,
|
|
141
143
|
});
|
|
142
144
|
}
|
|
143
145
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.58.1",
|
|
4
4
|
"homepage": "https://applitools.com",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"lint": "run --top-level eslint '**/*.ts'",
|
|
48
48
|
"build": "yarn build:dist",
|
|
49
49
|
"build:dist": "run --top-level tsc --project ./tsconfig.build.json",
|
|
50
|
-
"test": "run --top-level mocha './test/**/*.spec.ts' --exclude '
|
|
50
|
+
"test": "run --top-level mocha './test/**/*.spec.ts' --exclude 'test/e2e/mocha-sync/**' --parallel --jobs ${MOCHA_JOBS:-15} --exit --require ./test/mocha-global-setup.js",
|
|
51
51
|
"test:local": "MOCHA_OMIT_TAGS=sauce,browserstack run test",
|
|
52
52
|
"test:sauce": "MOCHA_ONLY_TAGS=sauce,browserstack run test",
|
|
53
53
|
"test:bin": "MOCHA_GROUP=bin run --top-level mocha './test/bin/**/*.spec.ts' --parallel --jobs ${MOCHA_JOBS:-15} --require ./test/mocha-global-setup.js",
|
|
54
|
-
"test:e2e": "MOCHA_OMIT_TAGS=http2 MOCHA_GROUP=e2e run --top-level mocha './test/e2e/**/*.spec.ts' --exclude '
|
|
55
|
-
"test:e2e:http2": "APPLITOOLS_HTTP_VERSION=2 MOCHA_OMIT_TAGS=http1,sauce,browserstack MOCHA_GROUP=e2e run --top-level mocha './test/e2e/**/*.spec.ts' --exclude '
|
|
54
|
+
"test:e2e": "MOCHA_OMIT_TAGS=http2 MOCHA_GROUP=e2e run --top-level mocha './test/e2e/**/*.spec.ts' --exclude 'test/e2e/mocha-sync/**' --parallel --jobs ${MOCHA_JOBS:-15} --exit --require ./test/mocha-global-setup.js",
|
|
55
|
+
"test:e2e:http2": "APPLITOOLS_HTTP_VERSION=2 MOCHA_OMIT_TAGS=http1,sauce,browserstack MOCHA_GROUP=e2e run --top-level mocha './test/e2e/**/*.spec.ts' --exclude 'test/e2e/mocha-sync/**' --parallel --jobs ${MOCHA_JOBS:-15} --exit --require ./test/mocha-global-setup.js",
|
|
56
56
|
"test:it": "MOCHA_GROUP=it run --top-level mocha './test/it/**/*.spec.ts' --require ./test/mocha-global-setup.js",
|
|
57
57
|
"test:e2e:sync": "MOCHA_GROUP=e2e SYNC=true run --top-level mocha './test/e2e/mocha-sync/**/*.spec.ts' --exit --require ./test/mocha-global-setup.js",
|
|
58
58
|
"test:unit": "MOCHA_GROUP=unit run --top-level mocha './test/unit/**/*.spec.ts' --require ./test/mocha-global-setup.js",
|
|
@@ -60,18 +60,18 @@
|
|
|
60
60
|
"setup:standalone": "sh -c 'yarn chromedriver --port=4444 --verbose &'"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@applitools/core-base": "1.32.
|
|
64
|
-
"@applitools/dom-capture": "11.6.
|
|
65
|
-
"@applitools/dom-snapshot": "4.
|
|
66
|
-
"@applitools/driver": "1.25.
|
|
67
|
-
"@applitools/ec-client": "1.12.
|
|
63
|
+
"@applitools/core-base": "1.32.3",
|
|
64
|
+
"@applitools/dom-capture": "11.6.12",
|
|
65
|
+
"@applitools/dom-snapshot": "4.16.0",
|
|
66
|
+
"@applitools/driver": "1.25.3",
|
|
67
|
+
"@applitools/ec-client": "1.12.23",
|
|
68
68
|
"@applitools/logger": "2.2.9",
|
|
69
|
-
"@applitools/nml-client": "1.11.
|
|
69
|
+
"@applitools/nml-client": "1.11.21",
|
|
70
70
|
"@applitools/req": "1.9.1",
|
|
71
|
-
"@applitools/screenshoter": "3.12.
|
|
72
|
-
"@applitools/snippets": "2.
|
|
71
|
+
"@applitools/screenshoter": "3.12.16",
|
|
72
|
+
"@applitools/snippets": "2.8.0",
|
|
73
73
|
"@applitools/socket": "1.3.10",
|
|
74
|
-
"@applitools/ufg-client": "1.
|
|
74
|
+
"@applitools/ufg-client": "1.20.0",
|
|
75
75
|
"@applitools/utils": "1.14.2",
|
|
76
76
|
"abort-controller": "3.0.0",
|
|
77
77
|
"chalk": "4.1.2",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@applitools/bongo": "^5.10.0",
|
|
84
|
-
"@applitools/spec-driver-puppeteer": "^1.7.
|
|
85
|
-
"@applitools/spec-driver-selenium": "^1.7.
|
|
84
|
+
"@applitools/spec-driver-puppeteer": "^1.7.3",
|
|
85
|
+
"@applitools/spec-driver-selenium": "^1.7.14",
|
|
86
86
|
"@applitools/test-server": "^1.4.1",
|
|
87
87
|
"@applitools/test-utils": "^1.5.17",
|
|
88
88
|
"@applitools/tunnel-client": "^1.11.8",
|
|
@@ -3,5 +3,8 @@ export declare function generateSafeSelectors<TSpec extends SpecType>({ context,
|
|
|
3
3
|
context: Context<TSpec>;
|
|
4
4
|
elementReferences?: ElementReference<TSpec>[];
|
|
5
5
|
}): Promise<{
|
|
6
|
-
generatedSelectors:
|
|
6
|
+
generatedSelectors: {
|
|
7
|
+
selector: string;
|
|
8
|
+
kind: string;
|
|
9
|
+
}[][][];
|
|
7
10
|
}>;
|