@applitools/core 4.21.2 → 4.22.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 +110 -0
- package/dist/open-eyes.js +31 -29
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,115 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.22.1](https://github.com/Applitools-Dev/sdk/compare/js/core@4.22.0...js/core@4.22.1) (2024-10-31)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* trigger release ([c97dbfc](https://github.com/Applitools-Dev/sdk/commit/c97dbfc89245f374917702a867b87f2794155e54))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* @applitools/dom-snapshot bumped to 4.11.6
|
|
14
|
+
#### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* trigger release ([c97dbfc](https://github.com/Applitools-Dev/sdk/commit/c97dbfc89245f374917702a867b87f2794155e54))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
* @applitools/snippets bumped to 2.6.1
|
|
21
|
+
#### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* trigger release ([c97dbfc](https://github.com/Applitools-Dev/sdk/commit/c97dbfc89245f374917702a867b87f2794155e54))
|
|
24
|
+
* @applitools/driver bumped to 1.19.6
|
|
25
|
+
#### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* trigger release ([c97dbfc](https://github.com/Applitools-Dev/sdk/commit/c97dbfc89245f374917702a867b87f2794155e54))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
* @applitools/spec-driver-webdriver bumped to 1.1.18
|
|
32
|
+
#### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* trigger release ([c97dbfc](https://github.com/Applitools-Dev/sdk/commit/c97dbfc89245f374917702a867b87f2794155e54))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
* @applitools/spec-driver-selenium bumped to 1.5.89
|
|
39
|
+
#### Bug Fixes
|
|
40
|
+
|
|
41
|
+
* trigger release ([c97dbfc](https://github.com/Applitools-Dev/sdk/commit/c97dbfc89245f374917702a867b87f2794155e54))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
* @applitools/spec-driver-puppeteer bumped to 1.4.18
|
|
46
|
+
#### Bug Fixes
|
|
47
|
+
|
|
48
|
+
* trigger release ([c97dbfc](https://github.com/Applitools-Dev/sdk/commit/c97dbfc89245f374917702a867b87f2794155e54))
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
* @applitools/screenshoter bumped to 3.9.4
|
|
53
|
+
#### Bug Fixes
|
|
54
|
+
|
|
55
|
+
* trigger release ([c97dbfc](https://github.com/Applitools-Dev/sdk/commit/c97dbfc89245f374917702a867b87f2794155e54))
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
* @applitools/nml-client bumped to 1.8.16
|
|
60
|
+
#### Bug Fixes
|
|
61
|
+
|
|
62
|
+
* trigger release ([c97dbfc](https://github.com/Applitools-Dev/sdk/commit/c97dbfc89245f374917702a867b87f2794155e54))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
* @applitools/core-base bumped to 1.19.1
|
|
67
|
+
#### Bug Fixes
|
|
68
|
+
|
|
69
|
+
* trigger release ([c97dbfc](https://github.com/Applitools-Dev/sdk/commit/c97dbfc89245f374917702a867b87f2794155e54))
|
|
70
|
+
* @applitools/ec-client bumped to 1.9.12
|
|
71
|
+
#### Bug Fixes
|
|
72
|
+
|
|
73
|
+
* trigger release ([c97dbfc](https://github.com/Applitools-Dev/sdk/commit/c97dbfc89245f374917702a867b87f2794155e54))
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## [4.22.0](https://github.com/Applitools-Dev/sdk/compare/js/core@4.21.2...js/core@4.22.0) (2024-10-31)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### Features
|
|
82
|
+
|
|
83
|
+
* html report for playwright ([#2576](https://github.com/Applitools-Dev/sdk/issues/2576)) ([f93f164](https://github.com/Applitools-Dev/sdk/commit/f93f164a289f5676bcc9d650e5e3d90b8e6a6920))
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### Dependencies
|
|
87
|
+
|
|
88
|
+
* @applitools/snippets bumped to 2.6.0
|
|
89
|
+
#### Features
|
|
90
|
+
|
|
91
|
+
* html report for playwright ([#2576](https://github.com/Applitools-Dev/sdk/issues/2576)) ([f93f164](https://github.com/Applitools-Dev/sdk/commit/f93f164a289f5676bcc9d650e5e3d90b8e6a6920))
|
|
92
|
+
* @applitools/dom-snapshot bumped to 4.11.5
|
|
93
|
+
|
|
94
|
+
* @applitools/driver bumped to 1.19.5
|
|
95
|
+
|
|
96
|
+
* @applitools/spec-driver-webdriver bumped to 1.1.17
|
|
97
|
+
|
|
98
|
+
* @applitools/spec-driver-selenium bumped to 1.5.88
|
|
99
|
+
|
|
100
|
+
* @applitools/spec-driver-puppeteer bumped to 1.4.17
|
|
101
|
+
|
|
102
|
+
* @applitools/screenshoter bumped to 3.9.3
|
|
103
|
+
|
|
104
|
+
* @applitools/nml-client bumped to 1.8.15
|
|
105
|
+
|
|
106
|
+
* @applitools/core-base bumped to 1.19.0
|
|
107
|
+
#### Features
|
|
108
|
+
|
|
109
|
+
* html report for playwright ([#2576](https://github.com/Applitools-Dev/sdk/issues/2576)) ([f93f164](https://github.com/Applitools-Dev/sdk/commit/f93f164a289f5676bcc9d650e5e3d90b8e6a6920))
|
|
110
|
+
* @applitools/ec-client bumped to 1.9.11
|
|
111
|
+
|
|
112
|
+
|
|
3
113
|
## [4.21.2](https://github.com/Applitools-Dev/sdk/compare/js/core@4.21.1...js/core@4.21.2) (2024-10-29)
|
|
4
114
|
|
|
5
115
|
|
package/dist/open-eyes.js
CHANGED
|
@@ -39,37 +39,36 @@ const core_base_1 = require("@applitools/core-base");
|
|
|
39
39
|
const extract_git_info_1 = require("./utils/extract-git-info");
|
|
40
40
|
function makeOpenEyes({ type: defaultType = 'classic', clients, batch, removeDuplicateTests, core, cores, spec, environment, logger: mainLogger, asyncCache, cwd = process.cwd(), }) {
|
|
41
41
|
return async function openEyes({ type = defaultType, settings: openSettings, config, target, logger = mainLogger, }) {
|
|
42
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v
|
|
43
|
-
var
|
|
42
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
43
|
+
var _w, _x, _y, _z, _0;
|
|
44
44
|
logger = logger.extend(mainLogger, { tags: [`eyes-${type}-${utils.general.shortid()}`] });
|
|
45
45
|
const settings = { ...config === null || config === void 0 ? void 0 : config.open, ...openSettings };
|
|
46
46
|
const eyesServerSettings = (0, populate_eyes_server_settings_1.populateEyesServerSettings)(settings);
|
|
47
47
|
(_a = settings.userTestId) !== null && _a !== void 0 ? _a : (settings.userTestId = `${settings.testName}--${utils.general.guid()}`);
|
|
48
48
|
settings.batch = { ...batch, ...settings.batch };
|
|
49
|
-
(_b = (
|
|
50
|
-
(
|
|
51
|
-
(
|
|
52
|
-
(
|
|
53
|
-
(
|
|
54
|
-
(
|
|
55
|
-
(
|
|
56
|
-
(
|
|
57
|
-
(
|
|
58
|
-
(
|
|
59
|
-
(
|
|
60
|
-
(
|
|
61
|
-
(
|
|
62
|
-
(
|
|
63
|
-
(
|
|
64
|
-
(
|
|
49
|
+
(_b = (_w = settings.batch).id) !== null && _b !== void 0 ? _b : (_w.id = (_c = utils.general.getEnvValue('BATCH_ID')) !== null && _c !== void 0 ? _c : `generated-${utils.general.guid()}`);
|
|
50
|
+
(_d = (_x = settings.batch).buildId) !== null && _d !== void 0 ? _d : (_x.buildId = utils.general.getEnvValue('BATCH_BUILD_ID'));
|
|
51
|
+
(_e = (_y = settings.batch).name) !== null && _e !== void 0 ? _e : (_y.name = utils.general.getEnvValue('BATCH_NAME'));
|
|
52
|
+
(_f = (_z = settings.batch).sequenceName) !== null && _f !== void 0 ? _f : (_z.sequenceName = utils.general.getEnvValue('BATCH_SEQUENCE'));
|
|
53
|
+
(_g = (_0 = settings.batch).notifyOnCompletion) !== null && _g !== void 0 ? _g : (_0.notifyOnCompletion = utils.general.getEnvValue('BATCH_NOTIFY', 'boolean'));
|
|
54
|
+
(_h = settings.keepBatchOpen) !== null && _h !== void 0 ? _h : (settings.keepBatchOpen = utils.general.getEnvValue('DONT_CLOSE_BATCHES', 'boolean'));
|
|
55
|
+
(_j = settings.branchName) !== null && _j !== void 0 ? _j : (settings.branchName = utils.general.getEnvValue('BRANCH'));
|
|
56
|
+
(_k = settings.parentBranchName) !== null && _k !== void 0 ? _k : (settings.parentBranchName = utils.general.getEnvValue('PARENT_BRANCH'));
|
|
57
|
+
(_l = settings.baselineBranchName) !== null && _l !== void 0 ? _l : (settings.baselineBranchName = utils.general.getEnvValue('BASELINE_BRANCH'));
|
|
58
|
+
(_m = settings.gitBranchingTimestamp) !== null && _m !== void 0 ? _m : (settings.gitBranchingTimestamp = utils.general.getEnvValue('GIT_MERGE_BASE_TIMESTAMP'));
|
|
59
|
+
(_o = settings.latestCommitInfo) !== null && _o !== void 0 ? _o : (settings.latestCommitInfo = getLatestCommitInfoFromEnvVars(logger));
|
|
60
|
+
(_p = settings.ufgServerUrl) !== null && _p !== void 0 ? _p : (settings.ufgServerUrl = utils.general.getEnvValue('UFG_SERVER_URL'));
|
|
61
|
+
(_q = settings.ignoreBaseline) !== null && _q !== void 0 ? _q : (settings.ignoreBaseline = false);
|
|
62
|
+
(_r = settings.compareWithParentBranch) !== null && _r !== void 0 ? _r : (settings.compareWithParentBranch = false);
|
|
63
|
+
(_s = settings.removeDuplicateTests) !== null && _s !== void 0 ? _s : (settings.removeDuplicateTests = removeDuplicateTests);
|
|
64
|
+
(_t = settings.latestCommitInfo) !== null && _t !== void 0 ? _t : (settings.latestCommitInfo = await (0, extract_git_info_1.extractLatestCommitInfo)({ execOptions: { cwd }, logger }));
|
|
65
65
|
if (settings.latestCommitInfo && !(0, extract_git_info_1.isISODate)(settings.latestCommitInfo.timestamp)) {
|
|
66
66
|
logger.warn(`latestCommitInfo.timestamp is an invalid ISO date string: ${settings.latestCommitInfo.timestamp}`);
|
|
67
67
|
settings.latestCommitInfo = undefined;
|
|
68
68
|
}
|
|
69
|
-
if (process.env.CI && ((
|
|
70
|
-
await populateAutoScmInfo((
|
|
69
|
+
if (process.env.CI && (isRealBatchId(settings.batch.id) || settings.latestCommitInfo)) {
|
|
70
|
+
await populateAutoScmInfo(isRealBatchId(settings.batch.id) ? settings.batch.id : settings.latestCommitInfo.sha);
|
|
71
71
|
}
|
|
72
|
-
(_v = (_3 = settings.batch).id) !== null && _v !== void 0 ? _v : (_3.id = `generated-${utils.general.guid()}`);
|
|
73
72
|
if (settings.ignoreGitBranching) {
|
|
74
73
|
settings.gitBranchingTimestamp = undefined;
|
|
75
74
|
}
|
|
@@ -98,7 +97,7 @@ function makeOpenEyes({ type: defaultType = 'classic', clients, batch, removeDup
|
|
|
98
97
|
event: {
|
|
99
98
|
type: 'openEyes',
|
|
100
99
|
userTestId: settings.userTestId,
|
|
101
|
-
concurrency: (
|
|
100
|
+
concurrency: (_u = cores === null || cores === void 0 ? void 0 : cores[type].concurrency) !== null && _u !== void 0 ? _u : core.concurrency,
|
|
102
101
|
environment,
|
|
103
102
|
driver: {
|
|
104
103
|
deviceName: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.deviceName,
|
|
@@ -106,7 +105,7 @@ function makeOpenEyes({ type: defaultType = 'classic', clients, batch, removeDup
|
|
|
106
105
|
browserVersion: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.browserVersion,
|
|
107
106
|
platformName: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.platformName,
|
|
108
107
|
platformVersion: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.platformVersion,
|
|
109
|
-
isApplitoolsLib: (
|
|
108
|
+
isApplitoolsLib: (_v = driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.applitoolsLib) === null || _v === void 0 ? void 0 : _v.instrumented,
|
|
110
109
|
isEC: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.isEC,
|
|
111
110
|
},
|
|
112
111
|
driverUrl,
|
|
@@ -143,8 +142,8 @@ function makeOpenEyes({ type: defaultType = 'classic', clients, batch, removeDup
|
|
|
143
142
|
}); // TODO solve the types issue
|
|
144
143
|
/////// END FUNCTION BODY ///////////////////
|
|
145
144
|
async function populateAutoScmInfo(batchId) {
|
|
146
|
-
var _a, _b, _c, _d
|
|
147
|
-
var
|
|
145
|
+
var _a, _b, _c, _d;
|
|
146
|
+
var _e;
|
|
148
147
|
const branchName = await (0, extract_git_info_1.extractGitBranch)({ execOptions: { cwd }, logger });
|
|
149
148
|
const { owner: repoOwner, name: repoName } = await (0, extract_git_info_1.extractGitRepo)({ execOptions: { cwd }, logger });
|
|
150
149
|
const buildId = await (0, extract_git_info_1.extractBuildIdFromCI)();
|
|
@@ -159,10 +158,10 @@ function makeOpenEyes({ type: defaultType = 'classic', clients, batch, removeDup
|
|
|
159
158
|
});
|
|
160
159
|
if (scmInfo) {
|
|
161
160
|
(_a = settings.batch) !== null && _a !== void 0 ? _a : (settings.batch = {});
|
|
162
|
-
|
|
163
|
-
(
|
|
164
|
-
(
|
|
165
|
-
(
|
|
161
|
+
settings.batch.id = isRealBatchId(settings.batch.id) ? settings.batch.id : batchId;
|
|
162
|
+
(_b = (_e = settings.batch).buildId) !== null && _b !== void 0 ? _b : (_e.buildId = buildId);
|
|
163
|
+
(_c = settings.branchName) !== null && _c !== void 0 ? _c : (settings.branchName = branchName);
|
|
164
|
+
(_d = settings.parentBranchName) !== null && _d !== void 0 ? _d : (settings.parentBranchName = scmInfo.scmTargetBranch);
|
|
166
165
|
}
|
|
167
166
|
}
|
|
168
167
|
else {
|
|
@@ -243,3 +242,6 @@ function getLatestCommitInfoFromEnvVars(logger) {
|
|
|
243
242
|
logger.warn(`APPLITOOLS_GIT_LATEST_COMMIT_SHA was provided without APPLITOOLS_GIT_LATEST_COMMIT_TIMESTAMP. Not populating latestCommitInfo with the provided sha ${sha}.`);
|
|
244
243
|
}
|
|
245
244
|
}
|
|
245
|
+
function isRealBatchId(batchId) {
|
|
246
|
+
return !!batchId && !batchId.startsWith('generated');
|
|
247
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.22.1",
|
|
4
4
|
"homepage": "https://applitools.com",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -74,18 +74,18 @@
|
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@applitools/core-base": "1.
|
|
77
|
+
"@applitools/core-base": "1.19.1",
|
|
78
78
|
"@applitools/dom-capture": "11.5.0",
|
|
79
|
-
"@applitools/dom-snapshot": "4.11.
|
|
80
|
-
"@applitools/driver": "1.19.
|
|
81
|
-
"@applitools/ec-client": "1.9.
|
|
79
|
+
"@applitools/dom-snapshot": "4.11.6",
|
|
80
|
+
"@applitools/driver": "1.19.6",
|
|
81
|
+
"@applitools/ec-client": "1.9.12",
|
|
82
82
|
"@applitools/logger": "2.0.18",
|
|
83
|
-
"@applitools/nml-client": "1.8.
|
|
83
|
+
"@applitools/nml-client": "1.8.16",
|
|
84
84
|
"@applitools/req": "1.7.2",
|
|
85
|
-
"@applitools/screenshoter": "3.9.
|
|
86
|
-
"@applitools/snippets": "2.
|
|
85
|
+
"@applitools/screenshoter": "3.9.4",
|
|
86
|
+
"@applitools/snippets": "2.6.1",
|
|
87
87
|
"@applitools/socket": "1.1.18",
|
|
88
|
-
"@applitools/spec-driver-webdriver": "1.1.
|
|
88
|
+
"@applitools/spec-driver-webdriver": "1.1.18",
|
|
89
89
|
"@applitools/ufg-client": "1.13.1",
|
|
90
90
|
"@applitools/utils": "1.7.4",
|
|
91
91
|
"@types/ws": "8.5.5",
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
"devDependencies": {
|
|
101
101
|
"@applitools/bongo": "^5.10.0",
|
|
102
102
|
"@applitools/sea": "^1.0.0",
|
|
103
|
-
"@applitools/spec-driver-puppeteer": "^1.4.
|
|
104
|
-
"@applitools/spec-driver-selenium": "^1.5.
|
|
103
|
+
"@applitools/spec-driver-puppeteer": "^1.4.18",
|
|
104
|
+
"@applitools/spec-driver-selenium": "^1.5.89",
|
|
105
105
|
"@applitools/test-server": "^1.2.2",
|
|
106
106
|
"@applitools/test-utils": "^1.5.17",
|
|
107
107
|
"@applitools/tunnel-client": "^1.5.8",
|