@applitools/core 4.10.5 → 4.11.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 +29 -0
- package/dist/classic/open-eyes.js +3 -2
- package/dist/get-manager-results.js +1 -1
- package/dist/make-manager.js +5 -4
- package/dist/open-eyes.js +17 -15
- package/dist/ufg/open-eyes.js +3 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.11.0](https://github.com/Applitools-Dev/sdk/compare/js/core@4.10.5...js/core@4.11.0) (2024-03-31)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* Add GitMergeBaseTimestamp support ([#2281](https://github.com/Applitools-Dev/sdk/issues/2281)) ([5489608](https://github.com/Applitools-Dev/sdk/commit/54896085445663a51b5e5595a2517e48fa8736f3))
|
|
9
|
+
* batch buildId ([#2263](https://github.com/Applitools-Dev/sdk/issues/2263)) ([f19ac38](https://github.com/Applitools-Dev/sdk/commit/f19ac38612bc55d870f59161a39b5b7eb01e25f3))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Dependencies
|
|
13
|
+
|
|
14
|
+
* @applitools/spec-driver-selenium bumped to 1.5.73
|
|
15
|
+
#### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* remove getSessionDetails call in JS Selenium ([#2280](https://github.com/Applitools-Dev/sdk/issues/2280)) ([d15748f](https://github.com/Applitools-Dev/sdk/commit/d15748f68c931f2f84c13efd8472399c1ff72e25))
|
|
18
|
+
* @applitools/ec-client bumped to 1.7.31
|
|
19
|
+
|
|
20
|
+
* @applitools/core-base bumped to 1.10.0
|
|
21
|
+
#### Features
|
|
22
|
+
|
|
23
|
+
* Add GitMergeBaseTimestamp support ([#2281](https://github.com/Applitools-Dev/sdk/issues/2281)) ([5489608](https://github.com/Applitools-Dev/sdk/commit/54896085445663a51b5e5595a2517e48fa8736f3))
|
|
24
|
+
* batch buildId ([#2263](https://github.com/Applitools-Dev/sdk/issues/2263)) ([f19ac38](https://github.com/Applitools-Dev/sdk/commit/f19ac38612bc55d870f59161a39b5b7eb01e25f3))
|
|
25
|
+
* send heartbeat to keep test alive ([#2246](https://github.com/Applitools-Dev/sdk/issues/2246)) ([58636e7](https://github.com/Applitools-Dev/sdk/commit/58636e7dd353f06eb2b3bee1120ab81c3f9fcc94))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
#### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* retry Eyes request on ECONNREFUSED to improve stability during deployment ([d1e4dca](https://github.com/Applitools-Dev/sdk/commit/d1e4dcae79185578808b4f2c5f94fa79d7d914a3))
|
|
31
|
+
|
|
3
32
|
## [4.10.5](https://github.com/Applitools-Dev/sdk/compare/js/core@4.10.4...js/core@4.10.5) (2024-03-20)
|
|
4
33
|
|
|
5
34
|
|
|
@@ -54,16 +54,17 @@ function makeOpenEyes({ core, spec, logger: mainLogger }) {
|
|
|
54
54
|
const controller = new abort_controller_1.AbortController();
|
|
55
55
|
const account = await core.getAccountInfo({ settings, logger });
|
|
56
56
|
return utils.general.extend({}, eyes => {
|
|
57
|
-
var _a, _b, _c;
|
|
57
|
+
var _a, _b, _c, _d;
|
|
58
58
|
return {
|
|
59
59
|
type: 'classic',
|
|
60
60
|
core,
|
|
61
61
|
test: {
|
|
62
62
|
userTestId: settings.userTestId,
|
|
63
63
|
batchId: (_a = settings.batch) === null || _a === void 0 ? void 0 : _a.id,
|
|
64
|
+
batchBuildId: (_b = settings.batch) === null || _b === void 0 ? void 0 : _b.buildId,
|
|
64
65
|
keepBatchOpen: settings.keepBatchOpen,
|
|
65
66
|
eyesServer: account.eyesServer,
|
|
66
|
-
ufgServer: { ...account.ufgServer, ufgServerUrl: (
|
|
67
|
+
ufgServer: { ...account.ufgServer, ufgServerUrl: (_c = settings.ufgServerUrl) !== null && _c !== void 0 ? _c : (_d = account.ufgServer) === null || _d === void 0 ? void 0 : _d.ufgServerUrl },
|
|
67
68
|
uploadUrl: account.uploadUrl,
|
|
68
69
|
stitchingServiceUrl: account.stitchingServiceUrl,
|
|
69
70
|
supportedEnvironmentsUrl: account.supportedEnvironmentsUrl,
|
|
@@ -75,7 +75,7 @@ function makeGetManagerResults({ core, storage, logger: mainLogger, }) {
|
|
|
75
75
|
}
|
|
76
76
|
const batches = storage.reduce((batches, eyes) => {
|
|
77
77
|
if (!eyes.test.keepBatchOpen) {
|
|
78
|
-
const settings = { ...eyes.test.eyesServer, batchId: eyes.test.batchId };
|
|
78
|
+
const settings = { ...eyes.test.eyesServer, batchId: eyes.test.batchId, batchBuildId: eyes.test.batchBuildId };
|
|
79
79
|
batches[`${settings.eyesServerUrl}:${settings.apiKey}:${settings.batchId}`] = settings;
|
|
80
80
|
}
|
|
81
81
|
return batches;
|
package/dist/make-manager.js
CHANGED
|
@@ -32,14 +32,15 @@ const get_manager_results_1 = require("./get-manager-results");
|
|
|
32
32
|
const utils = __importStar(require("@applitools/utils"));
|
|
33
33
|
function makeMakeManager({ spec, clients, core, base: defaultBase, agentId: defaultAgentId, environment, cwd = process.cwd(), logger: mainLogger, asyncCache, }) {
|
|
34
34
|
return async function makeManager({ type = 'classic', settings, logger = mainLogger, } = {}) {
|
|
35
|
-
var _a, _b, _c, _d, _e, _f;
|
|
36
|
-
var
|
|
35
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
36
|
+
var _h, _j;
|
|
37
37
|
logger = logger.extend(mainLogger, { tags: [`manager-${type}-${utils.general.shortid()}`] });
|
|
38
38
|
settings !== null && settings !== void 0 ? settings : (settings = {});
|
|
39
39
|
(_a = settings.concurrency) !== null && _a !== void 0 ? _a : (settings.concurrency = (_b = utils.general.getEnvValue('CONCURRENCY', 'number')) !== null && _b !== void 0 ? _b : (utils.types.isInteger(settings.legacyConcurrency) ? settings.legacyConcurrency * 5 : 100));
|
|
40
40
|
(_c = settings.batch) !== null && _c !== void 0 ? _c : (settings.batch = {});
|
|
41
|
-
(_d = (
|
|
42
|
-
(_f = settings.
|
|
41
|
+
(_d = (_h = settings.batch).id) !== null && _d !== void 0 ? _d : (_h.id = (_e = utils.general.getEnvValue('BATCH_ID')) !== null && _e !== void 0 ? _e : `generated-${utils.general.guid()}`);
|
|
42
|
+
(_f = (_j = settings.batch).buildId) !== null && _f !== void 0 ? _f : (_j.buildId = utils.general.getEnvValue('BATCH_BUILD_ID'));
|
|
43
|
+
(_g = settings.agentId) !== null && _g !== void 0 ? _g : (settings.agentId = type === 'ufg' ? defaultAgentId === null || defaultAgentId === void 0 ? void 0 : defaultAgentId.replace(/(\/\d)/, '.visualgrid$1') : defaultAgentId);
|
|
43
44
|
logger.log('Command "makeManager" is called with settings', settings);
|
|
44
45
|
const base = defaultBase !== null && defaultBase !== void 0 ? defaultBase : (0, core_base_1.makeCore)({ agentId: settings.agentId, concurrency: settings.concurrency, cwd, logger });
|
|
45
46
|
const cores = {
|
package/dist/open-eyes.js
CHANGED
|
@@ -37,24 +37,26 @@ const populate_eyes_server_settings_1 = require("./utils/populate-eyes-server-se
|
|
|
37
37
|
const utils = __importStar(require("@applitools/utils"));
|
|
38
38
|
function makeOpenEyes({ type: defaultType = 'classic', clients, batch, core, cores, spec, environment, logger: mainLogger, asyncCache, }) {
|
|
39
39
|
return async function openEyes({ type = defaultType, settings, config, target, logger = mainLogger, }) {
|
|
40
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
41
|
-
var
|
|
40
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
41
|
+
var _t, _u, _v, _w, _x;
|
|
42
42
|
logger = logger.extend(mainLogger, { tags: [`eyes-${type}-${utils.general.shortid()}`] });
|
|
43
43
|
settings = { ...config === null || config === void 0 ? void 0 : config.open, ...settings };
|
|
44
44
|
(0, populate_eyes_server_settings_1.populateEyesServerSettings)(settings);
|
|
45
45
|
(_a = settings.userTestId) !== null && _a !== void 0 ? _a : (settings.userTestId = `${settings.testName}--${utils.general.guid()}`);
|
|
46
46
|
settings.batch = { ...batch, ...settings.batch };
|
|
47
|
-
(_b = (
|
|
48
|
-
(_d = (
|
|
49
|
-
(_e = (
|
|
50
|
-
(_f = (
|
|
51
|
-
(_g = settings.
|
|
52
|
-
(_h = settings.
|
|
53
|
-
(_j = settings.
|
|
54
|
-
(_k = settings.
|
|
55
|
-
(_l = settings.
|
|
56
|
-
(_m = settings.
|
|
57
|
-
(_o = settings.
|
|
47
|
+
(_b = (_t = settings.batch).id) !== null && _b !== void 0 ? _b : (_t.id = (_c = utils.general.getEnvValue('BATCH_ID')) !== null && _c !== void 0 ? _c : `generated-${utils.general.guid()}`);
|
|
48
|
+
(_d = (_u = settings.batch).buildId) !== null && _d !== void 0 ? _d : (_u.buildId = utils.general.getEnvValue('BATCH_BUILD_ID'));
|
|
49
|
+
(_e = (_v = settings.batch).name) !== null && _e !== void 0 ? _e : (_v.name = utils.general.getEnvValue('BATCH_NAME'));
|
|
50
|
+
(_f = (_w = settings.batch).sequenceName) !== null && _f !== void 0 ? _f : (_w.sequenceName = utils.general.getEnvValue('BATCH_SEQUENCE'));
|
|
51
|
+
(_g = (_x = settings.batch).notifyOnCompletion) !== null && _g !== void 0 ? _g : (_x.notifyOnCompletion = utils.general.getEnvValue('BATCH_NOTIFY', 'boolean'));
|
|
52
|
+
(_h = settings.keepBatchOpen) !== null && _h !== void 0 ? _h : (settings.keepBatchOpen = utils.general.getEnvValue('DONT_CLOSE_BATCHES', 'boolean'));
|
|
53
|
+
(_j = settings.branchName) !== null && _j !== void 0 ? _j : (settings.branchName = utils.general.getEnvValue('BRANCH'));
|
|
54
|
+
(_k = settings.parentBranchName) !== null && _k !== void 0 ? _k : (settings.parentBranchName = utils.general.getEnvValue('PARENT_BRANCH'));
|
|
55
|
+
(_l = settings.baselineBranchName) !== null && _l !== void 0 ? _l : (settings.baselineBranchName = utils.general.getEnvValue('BASELINE_BRANCH'));
|
|
56
|
+
(_m = settings.gitBranchingTimestamp) !== null && _m !== void 0 ? _m : (settings.gitBranchingTimestamp = utils.general.getEnvValue('GIT_MERGE_BASE_TIMESTAMP'));
|
|
57
|
+
(_o = settings.ufgServerUrl) !== null && _o !== void 0 ? _o : (settings.ufgServerUrl = utils.general.getEnvValue('UFG_SERVER_URL'));
|
|
58
|
+
(_p = settings.ignoreBaseline) !== null && _p !== void 0 ? _p : (settings.ignoreBaseline = false);
|
|
59
|
+
(_q = settings.compareWithParentBranch) !== null && _q !== void 0 ? _q : (settings.compareWithParentBranch = false);
|
|
58
60
|
const driver = target && (await (0, driver_1.makeDriver)({ spec, driver: target, logger, customConfig: settings }));
|
|
59
61
|
const driverEnvironment = await (driver === null || driver === void 0 ? void 0 : driver.getEnvironment());
|
|
60
62
|
const driverUrl = await (driver === null || driver === void 0 ? void 0 : driver.getDriverUrl());
|
|
@@ -65,7 +67,7 @@ function makeOpenEyes({ type: defaultType = 'classic', clients, batch, core, cor
|
|
|
65
67
|
event: {
|
|
66
68
|
type: 'openEyes',
|
|
67
69
|
userTestId: settings.userTestId,
|
|
68
|
-
concurrency: (
|
|
70
|
+
concurrency: (_r = cores === null || cores === void 0 ? void 0 : cores[type].concurrency) !== null && _r !== void 0 ? _r : core.concurrency,
|
|
69
71
|
environment,
|
|
70
72
|
driver: {
|
|
71
73
|
deviceName: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.deviceName,
|
|
@@ -73,7 +75,7 @@ function makeOpenEyes({ type: defaultType = 'classic', clients, batch, core, cor
|
|
|
73
75
|
browserVersion: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.browserVersion,
|
|
74
76
|
platformName: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.platformName,
|
|
75
77
|
platformVersion: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.platformVersion,
|
|
76
|
-
isApplitoolsLib: (
|
|
78
|
+
isApplitoolsLib: (_s = driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.applitoolsLib) === null || _s === void 0 ? void 0 : _s.instrumented,
|
|
77
79
|
isEC: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.isEC,
|
|
78
80
|
},
|
|
79
81
|
driverUrl,
|
package/dist/ufg/open-eyes.js
CHANGED
|
@@ -54,16 +54,17 @@ function makeOpenEyes({ core, spec, logger: mainLogger }) {
|
|
|
54
54
|
const controller = new abort_controller_1.AbortController();
|
|
55
55
|
const account = await core.getAccountInfo({ settings, logger });
|
|
56
56
|
return utils.general.extend({}, eyes => {
|
|
57
|
-
var _a, _b, _c;
|
|
57
|
+
var _a, _b, _c, _d;
|
|
58
58
|
return {
|
|
59
59
|
type: 'ufg',
|
|
60
60
|
core,
|
|
61
61
|
test: {
|
|
62
62
|
userTestId: settings.userTestId,
|
|
63
63
|
batchId: (_a = settings.batch) === null || _a === void 0 ? void 0 : _a.id,
|
|
64
|
+
batchBuildId: (_b = settings.batch) === null || _b === void 0 ? void 0 : _b.buildId,
|
|
64
65
|
keepBatchOpen: settings.keepBatchOpen,
|
|
65
66
|
eyesServer: account.eyesServer,
|
|
66
|
-
ufgServer: { ...account.ufgServer, ufgServerUrl: (
|
|
67
|
+
ufgServer: { ...account.ufgServer, ufgServerUrl: (_c = settings.ufgServerUrl) !== null && _c !== void 0 ? _c : (_d = account.ufgServer) === null || _d === void 0 ? void 0 : _d.ufgServerUrl },
|
|
67
68
|
uploadUrl: account.uploadUrl,
|
|
68
69
|
stitchingServiceUrl: account.stitchingServiceUrl,
|
|
69
70
|
supportedEnvironmentsUrl: account.supportedEnvironmentsUrl,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.11.0",
|
|
4
4
|
"homepage": "https://applitools.com",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"targets": {
|
|
69
|
-
"node20-linux-x64-glibc-217": "./bin/core-linux",
|
|
69
|
+
"node20.11-linux-x64-glibc-217": "./bin/core-linux",
|
|
70
70
|
"node20-linux-x64-musl": "./bin/core-alpine",
|
|
71
71
|
"node20-linux-arm64": "./bin/core-linux-arm64",
|
|
72
72
|
"node20-darwin-x64": "./bin/core-macos",
|
|
@@ -74,11 +74,11 @@
|
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@applitools/core-base": "1.
|
|
77
|
+
"@applitools/core-base": "1.10.0",
|
|
78
78
|
"@applitools/dom-capture": "11.2.6",
|
|
79
79
|
"@applitools/dom-snapshot": "4.9.2",
|
|
80
80
|
"@applitools/driver": "1.16.5",
|
|
81
|
-
"@applitools/ec-client": "1.7.
|
|
81
|
+
"@applitools/ec-client": "1.7.31",
|
|
82
82
|
"@applitools/logger": "2.0.14",
|
|
83
83
|
"@applitools/nml-client": "1.7.5",
|
|
84
84
|
"@applitools/req": "1.6.5",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"@applitools/bongo": "^5.10.0",
|
|
102
102
|
"@applitools/sea": "^1.0.0",
|
|
103
103
|
"@applitools/spec-driver-puppeteer": "^1.4.3",
|
|
104
|
-
"@applitools/spec-driver-selenium": "^1.5.
|
|
104
|
+
"@applitools/spec-driver-selenium": "^1.5.73",
|
|
105
105
|
"@applitools/test-server": "^1.2.2",
|
|
106
106
|
"@applitools/test-utils": "^1.5.17",
|
|
107
107
|
"@applitools/tunnel-client": "^1.4.1",
|