@applitools/core 4.54.4 → 4.56.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 +58 -0
- package/dist/autonomous/core.js +2 -2
- package/dist/check.js +1 -0
- package/dist/ufg/core.js +1 -1
- package/dist/ufg/take-snapshots.js +2 -1
- package/dist/ufg/utils/take-dom-snapshot.js +1 -0
- package/dist/universal/spec-driver.js +3 -0
- package/package.json +10 -10
- package/types/autonomous/core.d.ts +2 -1
- package/types/ufg/take-snapshots.d.ts +2 -1
- package/types/ufg/utils/take-dom-snapshot.d.ts +1 -0
- package/types/universal/types.d.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,63 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.56.0](https://github.com/Applitools-Dev/sdk/compare/js/core@4.55.0...js/core@4.56.0) (2026-01-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add `fetchConcurrency` parameter to `makeAutonomousCore` FLD-4063 ([#3480](https://github.com/Applitools-Dev/sdk/issues/3480)) ([df0c60d](https://github.com/Applitools-Dev/sdk/commit/df0c60d5e74703550dba036299db7360065524f6))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add fetchConcurrency to dom-snapshot | FLD-4062 ([#3486](https://github.com/Applitools-Dev/sdk/issues/3486)) ([f523791](https://github.com/Applitools-Dev/sdk/commit/f523791b9bc60029ec0b4b6914bc54e0110bd4a2))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Dependencies
|
|
17
|
+
|
|
18
|
+
* @applitools/dom-snapshot bumped to 4.15.7
|
|
19
|
+
#### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* add fetchConcurrency to dom-snapshot | FLD-4062 ([#3486](https://github.com/Applitools-Dev/sdk/issues/3486)) ([f523791](https://github.com/Applitools-Dev/sdk/commit/f523791b9bc60029ec0b4b6914bc54e0110bd4a2))
|
|
22
|
+
* @applitools/ufg-client bumped to 1.19.0
|
|
23
|
+
#### Features
|
|
24
|
+
|
|
25
|
+
* add `fetchConcurrency` parameter to `makeAutonomousCore` FLD-4063 ([#3480](https://github.com/Applitools-Dev/sdk/issues/3480)) ([df0c60d](https://github.com/Applitools-Dev/sdk/commit/df0c60d5e74703550dba036299db7360065524f6))
|
|
26
|
+
|
|
27
|
+
## [4.55.0](https://github.com/Applitools-Dev/sdk/compare/js/core@4.54.4...js/core@4.55.0) (2026-01-19)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
* multi-page support - FLD-3827 ([#3410](https://github.com/Applitools-Dev/sdk/issues/3410)) ([a55b982](https://github.com/Applitools-Dev/sdk/commit/a55b9827c2218c11da5ed61b38bf12a70ce4c8db))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Dependencies
|
|
36
|
+
|
|
37
|
+
* @applitools/driver bumped to 1.25.0
|
|
38
|
+
#### Features
|
|
39
|
+
|
|
40
|
+
* multi-page support - FLD-3827 ([#3410](https://github.com/Applitools-Dev/sdk/issues/3410)) ([a55b982](https://github.com/Applitools-Dev/sdk/commit/a55b9827c2218c11da5ed61b38bf12a70ce4c8db))
|
|
41
|
+
* @applitools/spec-driver-puppeteer bumped to 1.7.0
|
|
42
|
+
#### Features
|
|
43
|
+
|
|
44
|
+
* multi-page support - FLD-3827 ([#3410](https://github.com/Applitools-Dev/sdk/issues/3410)) ([a55b982](https://github.com/Applitools-Dev/sdk/commit/a55b9827c2218c11da5ed61b38bf12a70ce4c8db))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
* @applitools/dom-snapshot bumped to 4.15.6
|
|
49
|
+
|
|
50
|
+
* @applitools/spec-driver-webdriver bumped to 1.5.5
|
|
51
|
+
|
|
52
|
+
* @applitools/spec-driver-selenium bumped to 1.7.11
|
|
53
|
+
|
|
54
|
+
* @applitools/screenshoter bumped to 3.12.12
|
|
55
|
+
|
|
56
|
+
* @applitools/nml-client bumped to 1.11.15
|
|
57
|
+
|
|
58
|
+
* @applitools/ec-client bumped to 1.12.17
|
|
59
|
+
|
|
60
|
+
|
|
3
61
|
## [4.54.4](https://github.com/Applitools-Dev/sdk/compare/js/core@4.54.3...js/core@4.54.4) (2026-01-19)
|
|
4
62
|
|
|
5
63
|
|
package/dist/autonomous/core.js
CHANGED
|
@@ -12,9 +12,9 @@ const open_eyes_1 = require("./open-eyes");
|
|
|
12
12
|
const open_check_and_close_1 = require("./open-check-and-close");
|
|
13
13
|
const register_default_scripts_1 = require("../ufg/utils/register-default-scripts");
|
|
14
14
|
const calculate_estimated_time_1 = require("./calculate-estimated-time");
|
|
15
|
-
function makeAutonomousCore({ spec, clients, base: defaultBase, asyncCache, agentId = 'core-autonomous', logger: defaultLogger, } = {}) {
|
|
15
|
+
function makeAutonomousCore({ spec, clients, base: defaultBase, asyncCache, fetchConcurrency, agentId = 'core-autonomous', logger: defaultLogger, } = {}) {
|
|
16
16
|
const logger = (0, logger_1.makeLogger)({ logger: defaultLogger, format: { label: 'core-autonomous' } });
|
|
17
|
-
const core = (0, core_1.makeCore)({ spec, clients, base: defaultBase, asyncCache, agentId, logger });
|
|
17
|
+
const core = (0, core_1.makeCore)({ spec, clients, base: defaultBase, asyncCache, fetchConcurrency, agentId, logger });
|
|
18
18
|
return {
|
|
19
19
|
type: 'autonomous',
|
|
20
20
|
takeSnapshots: spec && (0, take_snapshots_1.makeTakeSnapshots)({ core, spec, logger }),
|
package/dist/check.js
CHANGED
|
@@ -76,6 +76,7 @@ function makeCheck({ type: defaultType = 'classic', eyes, target: defaultTarget,
|
|
|
76
76
|
const driver = (0, driver_1.isDriver)(target, spec)
|
|
77
77
|
? await (0, driver_1.makeDriver)({ spec, driver: target, reset: target === defaultTarget, logger })
|
|
78
78
|
: null;
|
|
79
|
+
await (driver === null || driver === void 0 ? void 0 : driver.bringToFront());
|
|
79
80
|
const typedEyes = await eyes.getTypedEyes({ type, logger });
|
|
80
81
|
return typedEyes.check({ target: driver !== null && driver !== void 0 ? driver : target, settings, logger });
|
|
81
82
|
};
|
package/dist/ufg/core.js
CHANGED
|
@@ -47,7 +47,7 @@ function makeCore({ spec, clients, base: defaultBase, asyncCache, offlineLocatio
|
|
|
47
47
|
base: base,
|
|
48
48
|
getViewportSize: spec && (0, get_viewport_size_1.makeGetViewportSize)({ spec, logger }),
|
|
49
49
|
setViewportSize: spec && (0, set_viewport_size_1.makeSetViewportSize)({ spec, logger }),
|
|
50
|
-
takeSnapshots: spec && (0, take_snapshots_1.makeTakeSnapshots)({ spec, core, logger }),
|
|
50
|
+
takeSnapshots: spec && (0, take_snapshots_1.makeTakeSnapshots)({ spec, core, fetchConcurrency, logger }),
|
|
51
51
|
locate: (0, locate_1.makeLocate)({ spec, core, logger }),
|
|
52
52
|
locateText: (0, locate_text_1.makeLocateText)({ spec, core, logger }),
|
|
53
53
|
extractText: (0, extract_text_1.makeExtractText)({ spec, core, logger }),
|
|
@@ -7,7 +7,7 @@ const to_safe_check_settings_1 = require("./utils/to-safe-check-settings");
|
|
|
7
7
|
const to_generated_selectors_1 = require("./utils/to-generated-selectors");
|
|
8
8
|
const abort_error_1 = require("../errors/abort-error");
|
|
9
9
|
const filterStaleElements_1 = require("./utils/filterStaleElements");
|
|
10
|
-
function makeTakeSnapshots({ core, spec, signal, logger: mainLogger }) {
|
|
10
|
+
function makeTakeSnapshots({ core, spec, fetchConcurrency, signal, logger: mainLogger, }) {
|
|
11
11
|
const MAX_LOGGED_ERRORS_PER_SNAPSHOT = 10;
|
|
12
12
|
return async function takeSnapshots({ driver, settings = {}, account, logger = mainLogger, }) {
|
|
13
13
|
var _a, _b;
|
|
@@ -46,6 +46,7 @@ function makeTakeSnapshots({ core, spec, signal, logger: mainLogger }) {
|
|
|
46
46
|
settings: {
|
|
47
47
|
waitBeforeCapture: settings.waitBeforeCapture,
|
|
48
48
|
disableBrowserFetching: settings.disableBrowserFetching,
|
|
49
|
+
fetchConcurrency,
|
|
49
50
|
layoutBreakpoints: settings.layoutBreakpoints,
|
|
50
51
|
environments: uniqueEnvironments,
|
|
51
52
|
skipResources: ufgClient.getCachedResourceUrls(),
|
|
@@ -47,6 +47,7 @@ async function takeDomSnapshot({ context, settings, logger, }) {
|
|
|
47
47
|
const arg = {
|
|
48
48
|
dontFetchResources: settings === null || settings === void 0 ? void 0 : settings.disableBrowserFetching,
|
|
49
49
|
skipResources: settings === null || settings === void 0 ? void 0 : settings.skipResources,
|
|
50
|
+
fetchConcurrency: settings === null || settings === void 0 ? void 0 : settings.fetchConcurrency,
|
|
50
51
|
removeReverseProxyURLPrefixes: Boolean(process.env.APPLITOOLS_SCRIPT_REMOVE_REVERSE_PROXY_URL_PREFIXES),
|
|
51
52
|
chunkByteLength: (_a = settings === null || settings === void 0 ? void 0 : settings.chunkByteLength) !== null && _a !== void 0 ? _a : (Number(process.env.APPLITOOLS_SCRIPT_RESULT_MAX_BYTE_LENGTH) ||
|
|
52
53
|
(environment.isIOS ? 100000 : 250 * 1024 * 1024)),
|
|
@@ -160,6 +160,9 @@ function makeSpec({ socket, spec, }) {
|
|
|
160
160
|
async executeBrowserCommands(driver, commands) {
|
|
161
161
|
return socket.request('Driver.executeBrowserCommands', { driver, commands });
|
|
162
162
|
},
|
|
163
|
+
async bringToFront(driver) {
|
|
164
|
+
return socket.request('Driver.bringToFront', { driver });
|
|
165
|
+
},
|
|
163
166
|
};
|
|
164
167
|
// add default commands to spec (if not already there) such as `isUserFunction`
|
|
165
168
|
spec = addDefaultCommands(spec);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.56.0",
|
|
4
4
|
"homepage": "https://applitools.com",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -82,17 +82,17 @@
|
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@applitools/core-base": "1.31.1",
|
|
84
84
|
"@applitools/dom-capture": "11.6.8",
|
|
85
|
-
"@applitools/dom-snapshot": "4.15.
|
|
86
|
-
"@applitools/driver": "1.
|
|
87
|
-
"@applitools/ec-client": "1.12.
|
|
85
|
+
"@applitools/dom-snapshot": "4.15.7",
|
|
86
|
+
"@applitools/driver": "1.25.0",
|
|
87
|
+
"@applitools/ec-client": "1.12.17",
|
|
88
88
|
"@applitools/logger": "2.2.7",
|
|
89
|
-
"@applitools/nml-client": "1.11.
|
|
89
|
+
"@applitools/nml-client": "1.11.15",
|
|
90
90
|
"@applitools/req": "1.8.7",
|
|
91
|
-
"@applitools/screenshoter": "3.12.
|
|
91
|
+
"@applitools/screenshoter": "3.12.12",
|
|
92
92
|
"@applitools/snippets": "2.7.0",
|
|
93
93
|
"@applitools/socket": "1.3.8",
|
|
94
|
-
"@applitools/spec-driver-webdriver": "1.5.
|
|
95
|
-
"@applitools/ufg-client": "1.
|
|
94
|
+
"@applitools/spec-driver-webdriver": "1.5.5",
|
|
95
|
+
"@applitools/ufg-client": "1.19.0",
|
|
96
96
|
"@applitools/utils": "1.14.1",
|
|
97
97
|
"@types/ws": "8.5.5",
|
|
98
98
|
"abort-controller": "3.0.0",
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
"devDependencies": {
|
|
108
108
|
"@applitools/bongo": "^5.10.0",
|
|
109
109
|
"@applitools/sea": "^1.0.0",
|
|
110
|
-
"@applitools/spec-driver-puppeteer": "^1.
|
|
111
|
-
"@applitools/spec-driver-selenium": "^1.7.
|
|
110
|
+
"@applitools/spec-driver-puppeteer": "^1.7.0",
|
|
111
|
+
"@applitools/spec-driver-selenium": "^1.7.11",
|
|
112
112
|
"@applitools/test-server": "^1.3.5",
|
|
113
113
|
"@applitools/test-utils": "^1.5.17",
|
|
114
114
|
"@applitools/tunnel-client": "^1.11.5",
|
|
@@ -12,8 +12,9 @@ type Options<TSpec extends SpecType> = {
|
|
|
12
12
|
};
|
|
13
13
|
base?: BaseCore;
|
|
14
14
|
asyncCache?: AsyncCache;
|
|
15
|
+
fetchConcurrency?: number;
|
|
15
16
|
agentId?: string;
|
|
16
17
|
logger?: Logger;
|
|
17
18
|
};
|
|
18
|
-
export declare function makeAutonomousCore<TSpec extends SpecType>({ spec, clients, base: defaultBase, asyncCache, agentId, logger: defaultLogger, }?: Options<TSpec>): AutonomousCore<TSpec>;
|
|
19
|
+
export declare function makeAutonomousCore<TSpec extends SpecType>({ spec, clients, base: defaultBase, asyncCache, fetchConcurrency, agentId, logger: defaultLogger, }?: Options<TSpec>): AutonomousCore<TSpec>;
|
|
19
20
|
export {};
|
|
@@ -5,10 +5,11 @@ import { type SpecType, type SpecDriver, type Driver } from '@applitools/driver'
|
|
|
5
5
|
type Options<TSpec extends SpecType> = {
|
|
6
6
|
core: Core<TSpec>;
|
|
7
7
|
spec: SpecDriver<TSpec>;
|
|
8
|
+
fetchConcurrency?: number;
|
|
8
9
|
signal?: AbortSignal;
|
|
9
10
|
logger: Logger;
|
|
10
11
|
};
|
|
11
|
-
export declare function makeTakeSnapshots<TSpec extends SpecType>({ core, spec, signal, logger: mainLogger }: Options<TSpec>): ({ driver, settings, account, logger, }: {
|
|
12
|
+
export declare function makeTakeSnapshots<TSpec extends SpecType>({ core, spec, fetchConcurrency, signal, logger: mainLogger, }: Options<TSpec>): ({ driver, settings, account, logger, }: {
|
|
12
13
|
driver: Driver<TSpec>;
|
|
13
14
|
settings?: SnapshotSettings<TSpec> | undefined;
|
|
14
15
|
account: Account;
|
|
@@ -31,6 +31,7 @@ export type RawDomSnapshot = {
|
|
|
31
31
|
export type DomSnapshotSettings<TSpec extends SpecType> = {
|
|
32
32
|
disableBrowserFetching?: boolean;
|
|
33
33
|
skipResources?: string[];
|
|
34
|
+
fetchConcurrency?: number;
|
|
34
35
|
chunkByteLength?: number;
|
|
35
36
|
executionTimeout?: number;
|
|
36
37
|
pollTimeout?: number;
|