@applitools/core 4.61.1 → 4.62.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 +82 -0
- package/dist/open-eyes.js +16 -11
- package/package.json +14 -11
- package/types/automation/types.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,87 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.62.0](https://github.com/Applitools-Dev/sdk/compare/js/core@4.61.1...js/core@4.62.0) (2026-05-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add bypassCSP support for UFG snapshot capture ([#3783](https://github.com/Applitools-Dev/sdk/issues/3783)) ([9e98933](https://github.com/Applitools-Dev/sdk/commit/9e98933b8ffba2ad1928aa2b2110e9a25209a599))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* @applitools/dom-shared bumped to 1.2.0
|
|
14
|
+
#### Features
|
|
15
|
+
|
|
16
|
+
* add bypassCSP support for UFG snapshot capture ([#3783](https://github.com/Applitools-Dev/sdk/issues/3783)) ([9e98933](https://github.com/Applitools-Dev/sdk/commit/9e98933b8ffba2ad1928aa2b2110e9a25209a599))
|
|
17
|
+
* @applitools/dom-snapshot bumped to 4.17.0
|
|
18
|
+
#### Features
|
|
19
|
+
|
|
20
|
+
* add bypassCSP support for UFG snapshot capture ([#3783](https://github.com/Applitools-Dev/sdk/issues/3783)) ([9e98933](https://github.com/Applitools-Dev/sdk/commit/9e98933b8ffba2ad1928aa2b2110e9a25209a599))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
#### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* re-trigger release for dom-snapshot (FLD-4452) and mcp (AD-13206) ([#3800](https://github.com/Applitools-Dev/sdk/issues/3800)) ([105dd42](https://github.com/Applitools-Dev/sdk/commit/105dd42010a56c454752eaca69380aaba085073e))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
* @applitools/snippets bumped to 2.9.0
|
|
30
|
+
#### Features
|
|
31
|
+
|
|
32
|
+
* add bypassCSP support for UFG snapshot capture ([#3783](https://github.com/Applitools-Dev/sdk/issues/3783)) ([9e98933](https://github.com/Applitools-Dev/sdk/commit/9e98933b8ffba2ad1928aa2b2110e9a25209a599))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
* @applitools/dom-capture bumped to 11.8.0
|
|
37
|
+
#### Features
|
|
38
|
+
|
|
39
|
+
* add bypassCSP support for UFG snapshot capture ([#3783](https://github.com/Applitools-Dev/sdk/issues/3783)) ([9e98933](https://github.com/Applitools-Dev/sdk/commit/9e98933b8ffba2ad1928aa2b2110e9a25209a599))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
* @applitools/driver bumped to 1.26.0
|
|
44
|
+
#### Features
|
|
45
|
+
|
|
46
|
+
* add bypassCSP support for UFG snapshot capture ([#3783](https://github.com/Applitools-Dev/sdk/issues/3783)) ([9e98933](https://github.com/Applitools-Dev/sdk/commit/9e98933b8ffba2ad1928aa2b2110e9a25209a599))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
* @applitools/spec-driver-webdriver bumped to 1.6.0
|
|
51
|
+
#### Features
|
|
52
|
+
|
|
53
|
+
* add bypassCSP support for UFG snapshot capture ([#3783](https://github.com/Applitools-Dev/sdk/issues/3783)) ([9e98933](https://github.com/Applitools-Dev/sdk/commit/9e98933b8ffba2ad1928aa2b2110e9a25209a599))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
* @applitools/spec-driver-selenium bumped to 1.8.0
|
|
58
|
+
#### Features
|
|
59
|
+
|
|
60
|
+
* add bypassCSP support for UFG snapshot capture ([#3783](https://github.com/Applitools-Dev/sdk/issues/3783)) ([9e98933](https://github.com/Applitools-Dev/sdk/commit/9e98933b8ffba2ad1928aa2b2110e9a25209a599))
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
* @applitools/spec-driver-playwright bumped to 1.9.0
|
|
65
|
+
#### Features
|
|
66
|
+
|
|
67
|
+
* add bypassCSP support for UFG snapshot capture ([#3783](https://github.com/Applitools-Dev/sdk/issues/3783)) ([9e98933](https://github.com/Applitools-Dev/sdk/commit/9e98933b8ffba2ad1928aa2b2110e9a25209a599))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
* @applitools/spec-driver-puppeteer bumped to 1.8.0
|
|
72
|
+
#### Features
|
|
73
|
+
|
|
74
|
+
* add bypassCSP support for UFG snapshot capture ([#3783](https://github.com/Applitools-Dev/sdk/issues/3783)) ([9e98933](https://github.com/Applitools-Dev/sdk/commit/9e98933b8ffba2ad1928aa2b2110e9a25209a599))
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
* @applitools/screenshoter bumped to 3.12.19
|
|
79
|
+
|
|
80
|
+
* @applitools/nml-client bumped to 1.11.26
|
|
81
|
+
|
|
82
|
+
* @applitools/ec-client bumped to 1.12.28
|
|
83
|
+
|
|
84
|
+
|
|
3
85
|
## [4.61.1](https://github.com/Applitools-Dev/sdk/compare/js/core@4.61.0...js/core@4.61.1) (2026-05-04)
|
|
4
86
|
|
|
5
87
|
|
package/dist/open-eyes.js
CHANGED
|
@@ -41,8 +41,8 @@ const types_1 = require("./types");
|
|
|
41
41
|
function makeOpenEyes({ type: defaultType = 'classic', clients, batch, removeDuplicateTests, core, cores, spec, environment, logger: mainLogger, asyncCache, concurrency, useServerConcurrency = false, cwd = process.cwd(), }) {
|
|
42
42
|
let shouldPrintConcurrencyWarning = true;
|
|
43
43
|
return async function openEyes({ type = defaultType, settings: openSettings, config, target, logger = mainLogger, }) {
|
|
44
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
|
45
|
-
var
|
|
44
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
|
|
45
|
+
var _2, _3, _4, _5, _6;
|
|
46
46
|
logger = logger.extend(mainLogger, { tags: [`eyes-${type}-${utils.general.shortid()}`] });
|
|
47
47
|
logger.log(`Opening Eyes in directory "${cwd}"`);
|
|
48
48
|
const settings = { environments: config === null || config === void 0 ? void 0 : config.check.environments, ...config === null || config === void 0 ? void 0 : config.open, ...openSettings };
|
|
@@ -51,11 +51,11 @@ function makeOpenEyes({ type: defaultType = 'classic', clients, batch, removeDup
|
|
|
51
51
|
logger.mask(eyesServerSettings.eyesServerUrl);
|
|
52
52
|
(_a = settings.userTestId) !== null && _a !== void 0 ? _a : (settings.userTestId = `${settings.testName}--${utils.general.guid()}`);
|
|
53
53
|
settings.batch = { ...batch, ...settings.batch };
|
|
54
|
-
(_b = (
|
|
55
|
-
(_d = (
|
|
56
|
-
(_e = (
|
|
57
|
-
(_f = (
|
|
58
|
-
(_g = (
|
|
54
|
+
(_b = (_2 = settings.batch).id) !== null && _b !== void 0 ? _b : (_2.id = (_c = utils.general.getEnvValue('BATCH_ID')) !== null && _c !== void 0 ? _c : `generated-${utils.general.guid()}`);
|
|
55
|
+
(_d = (_3 = settings.batch).buildId) !== null && _d !== void 0 ? _d : (_3.buildId = utils.general.getEnvValue('BATCH_BUILD_ID'));
|
|
56
|
+
(_e = (_4 = settings.batch).name) !== null && _e !== void 0 ? _e : (_4.name = utils.general.getEnvValue('BATCH_NAME'));
|
|
57
|
+
(_f = (_5 = settings.batch).sequenceName) !== null && _f !== void 0 ? _f : (_5.sequenceName = utils.general.getEnvValue('BATCH_SEQUENCE'));
|
|
58
|
+
(_g = (_6 = settings.batch).notifyOnCompletion) !== null && _g !== void 0 ? _g : (_6.notifyOnCompletion = utils.general.getEnvValue('BATCH_NOTIFY', 'boolean'));
|
|
59
59
|
(_h = settings.keepBatchOpen) !== null && _h !== void 0 ? _h : (settings.keepBatchOpen = utils.general.getEnvValue('DONT_CLOSE_BATCHES', 'boolean'));
|
|
60
60
|
(_j = settings.branchName) !== null && _j !== void 0 ? _j : (settings.branchName = (_k = utils.general.getEnvValue('BRANCH')) !== null && _k !== void 0 ? _k : utils.general.getEnvValue('BRANCH_NAME'));
|
|
61
61
|
(_l = settings.parentBranchName) !== null && _l !== void 0 ? _l : (settings.parentBranchName = (_m = utils.general.getEnvValue('PARENT_BRANCH')) !== null && _m !== void 0 ? _m : utils.general.getEnvValue('PARENT_BRANCH_NAME'));
|
|
@@ -92,15 +92,20 @@ function makeOpenEyes({ type: defaultType = 'classic', clients, batch, removeDup
|
|
|
92
92
|
logger.warn(`gitBranchingTimestamp is an invalid ISO date string: ${settings.gitBranchingTimestamp}`);
|
|
93
93
|
settings.gitBranchingTimestamp = undefined;
|
|
94
94
|
}
|
|
95
|
+
(_x = settings.bypassCSP) !== null && _x !== void 0 ? _x : (settings.bypassCSP = utils.general.getEnvValue('BYPASS_CSP', 'boolean') === true || undefined);
|
|
95
96
|
const driver = target && (await (0, driver_1.makeDriver)({ spec, driver: target, logger, customConfig: settings }));
|
|
97
|
+
if (settings.bypassCSP) {
|
|
98
|
+
logger.warn('CSP bypass is enabled.');
|
|
99
|
+
await (driver === null || driver === void 0 ? void 0 : driver.setBypassCSP(true));
|
|
100
|
+
}
|
|
96
101
|
const driverEnvironment = await (driver === null || driver === void 0 ? void 0 : driver.getEnvironment());
|
|
97
102
|
const driverUrl = await (driver === null || driver === void 0 ? void 0 : driver.getDriverUrl());
|
|
98
103
|
const multiDeviceTargets = [];
|
|
99
|
-
for (const checkEnv of (
|
|
100
|
-
if (utils.types.has(checkEnv, 'iosDeviceInfo') && ((
|
|
104
|
+
for (const checkEnv of (_y = settings.environments) !== null && _y !== void 0 ? _y : []) {
|
|
105
|
+
if (utils.types.has(checkEnv, 'iosDeviceInfo') && ((_z = driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.applitoolsLib) === null || _z === void 0 ? void 0 : _z.instrumented)) {
|
|
101
106
|
multiDeviceTargets.push({
|
|
102
107
|
deviceInfo: checkEnv.iosDeviceInfo.deviceName,
|
|
103
|
-
orientation: (
|
|
108
|
+
orientation: (_0 = checkEnv.iosDeviceInfo.screenOrientation) !== null && _0 !== void 0 ? _0 : 'portrait',
|
|
104
109
|
});
|
|
105
110
|
}
|
|
106
111
|
}
|
|
@@ -130,7 +135,7 @@ function makeOpenEyes({ type: defaultType = 'classic', clients, batch, removeDup
|
|
|
130
135
|
browserVersion: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.browserVersion,
|
|
131
136
|
platformName: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.platformName,
|
|
132
137
|
platformVersion: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.platformVersion,
|
|
133
|
-
isApplitoolsLib: (
|
|
138
|
+
isApplitoolsLib: (_1 = driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.applitoolsLib) === null || _1 === void 0 ? void 0 : _1.instrumented,
|
|
134
139
|
isEC: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.isEC,
|
|
135
140
|
},
|
|
136
141
|
driverUrl,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.62.0",
|
|
4
4
|
"homepage": "https://applitools.com",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -56,20 +56,21 @@
|
|
|
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",
|
|
59
|
-
"setup": "run --top-level browsers:setup && run --top-level xvfb:setup",
|
|
59
|
+
"setup": "run --top-level browsers:setup && run --top-level xvfb:setup && run playwright:setup",
|
|
60
|
+
"playwright:setup": "node -e \"var v=parseInt(process.version.slice(1));if(v>=18){require('child_process').execSync('yarn playwright install --with-deps firefox',{stdio:'inherit'})}else{console.log('Skipping playwright install (Node '+process.version+')')}\"",
|
|
60
61
|
"setup:standalone": "sh -c 'yarn chromedriver --port=4444 --verbose &'"
|
|
61
62
|
},
|
|
62
63
|
"dependencies": {
|
|
63
64
|
"@applitools/core-base": "1.33.0",
|
|
64
|
-
"@applitools/dom-capture": "11.
|
|
65
|
-
"@applitools/dom-snapshot": "4.
|
|
66
|
-
"@applitools/driver": "1.
|
|
67
|
-
"@applitools/ec-client": "1.12.
|
|
65
|
+
"@applitools/dom-capture": "11.8.0",
|
|
66
|
+
"@applitools/dom-snapshot": "4.17.0",
|
|
67
|
+
"@applitools/driver": "1.26.0",
|
|
68
|
+
"@applitools/ec-client": "1.12.28",
|
|
68
69
|
"@applitools/logger": "2.2.11",
|
|
69
|
-
"@applitools/nml-client": "1.11.
|
|
70
|
+
"@applitools/nml-client": "1.11.26",
|
|
70
71
|
"@applitools/req": "1.10.0",
|
|
71
|
-
"@applitools/screenshoter": "3.12.
|
|
72
|
-
"@applitools/snippets": "2.
|
|
72
|
+
"@applitools/screenshoter": "3.12.19",
|
|
73
|
+
"@applitools/snippets": "2.9.0",
|
|
73
74
|
"@applitools/socket": "1.3.12",
|
|
74
75
|
"@applitools/ufg-client": "1.22.0",
|
|
75
76
|
"@applitools/utils": "1.14.4",
|
|
@@ -81,8 +82,9 @@
|
|
|
81
82
|
},
|
|
82
83
|
"devDependencies": {
|
|
83
84
|
"@applitools/bongo": "^5.10.0",
|
|
84
|
-
"@applitools/spec-driver-
|
|
85
|
-
"@applitools/spec-driver-
|
|
85
|
+
"@applitools/spec-driver-playwright": "^1.9.0",
|
|
86
|
+
"@applitools/spec-driver-puppeteer": "^1.8.0",
|
|
87
|
+
"@applitools/spec-driver-selenium": "^1.8.0",
|
|
86
88
|
"@applitools/test-server": "^1.4.3",
|
|
87
89
|
"@applitools/test-utils": "^1.5.17",
|
|
88
90
|
"@applitools/tunnel-client": "^1.11.12",
|
|
@@ -93,6 +95,7 @@
|
|
|
93
95
|
"chromedriver": "^131.0.5",
|
|
94
96
|
"crypto": "^1.0.1",
|
|
95
97
|
"nock": "^13.3.2",
|
|
98
|
+
"playwright": "1.47.0",
|
|
96
99
|
"png-async": "^0.9.4",
|
|
97
100
|
"puppeteer": "^24.11.1",
|
|
98
101
|
"selenium-webdriver": "^4.15.0"
|