@applitools/core 4.69.1 → 4.69.2

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 CHANGED
@@ -1,5 +1,51 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.69.2](https://github.com/Applitools-Dev/sdk/compare/js/core@4.69.1...js/core@4.69.2) (2026-08-30)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * don't send the bare branch name under an scm integration | AD-15642 ([#4140](https://github.com/Applitools-Dev/sdk/issues/4140)) ([41c30b9](https://github.com/Applitools-Dev/sdk/commit/41c30b9999488ebc635528476888a5fc239654a8))
9
+ * resolve native iOS viewport in screen space | FLD-4552 ([#4088](https://github.com/Applitools-Dev/sdk/issues/4088)) ([e2f9b03](https://github.com/Applitools-Dev/sdk/commit/e2f9b030103c066faac45d69f98cee265a0a931a))
10
+
11
+
12
+ ### Dependencies
13
+
14
+ * @applitools/dom-snapshot bumped to 4.18.2
15
+ #### Performance Improvements
16
+
17
+ * emit adopted stylesheets as placeholder nodes | AD-15243 ([#4118](https://github.com/Applitools-Dev/sdk/issues/4118)) ([7486bbb](https://github.com/Applitools-Dev/sdk/commit/7486bbbc6f599d1de499e031a59eb4502de8b6b1))
18
+
19
+
20
+
21
+ * @applitools/driver bumped to 1.26.10
22
+ #### Bug Fixes
23
+
24
+ * resolve native iOS viewport in screen space | FLD-4552 ([#4088](https://github.com/Applitools-Dev/sdk/issues/4088)) ([e2f9b03](https://github.com/Applitools-Dev/sdk/commit/e2f9b030103c066faac45d69f98cee265a0a931a))
25
+ * @applitools/screenshoter bumped to 3.12.31
26
+ #### Bug Fixes
27
+
28
+ * resolve native iOS viewport in screen space | FLD-4552 ([#4088](https://github.com/Applitools-Dev/sdk/issues/4088)) ([e2f9b03](https://github.com/Applitools-Dev/sdk/commit/e2f9b030103c066faac45d69f98cee265a0a931a))
29
+
30
+
31
+
32
+ * @applitools/ufg-client bumped to 1.23.3
33
+ #### Bug Fixes
34
+
35
+ * extract css dependencies in chunks past the parser's offset limit | FLD-4643 ([#4134](https://github.com/Applitools-Dev/sdk/issues/4134)) ([1ffdc7b](https://github.com/Applitools-Dev/sdk/commit/1ffdc7bc7e1384bfc18ae9a1d5afbf7c342f8f40))
36
+ * @applitools/spec-driver-webdriver bumped to 1.6.10
37
+
38
+ * @applitools/spec-driver-selenium bumped to 1.8.10
39
+
40
+ * @applitools/spec-driver-playwright bumped to 1.9.10
41
+
42
+ * @applitools/spec-driver-puppeteer bumped to 1.8.10
43
+
44
+ * @applitools/nml-client bumped to 1.12.2
45
+
46
+ * @applitools/ec-client bumped to 1.12.45
47
+
48
+
3
49
  ## [4.69.1](https://github.com/Applitools-Dev/sdk/compare/js/core@4.69.0...js/core@4.69.1) (2026-08-23)
4
50
 
5
51
 
package/dist/open-eyes.js CHANGED
@@ -60,8 +60,8 @@ exports.sanitizeFinding = sanitizeFinding;
60
60
  function makeOpenEyes({ type: defaultType = 'classic', clients, batch, removeDuplicateTests, core, cores, spec, environment, logger: mainLogger, asyncCache, concurrency, useServerConcurrency = false, cwd = process.cwd(), }) {
61
61
  let shouldPrintConcurrencyWarning = true;
62
62
  return async function openEyes({ type = defaultType, settings: openSettings, config, target, logger = mainLogger, }) {
63
- 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;
64
- var _2, _3, _4, _5, _6;
63
+ 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, _2, _3;
64
+ var _4, _5, _6, _7, _8;
65
65
  logger = logger.extend(mainLogger, { tags: [`eyes-${type}-${utils.general.shortid()}`] });
66
66
  logger.log(`Opening Eyes in directory "${cwd}"`);
67
67
  const settings = { environments: config === null || config === void 0 ? void 0 : config.check.environments, ...config === null || config === void 0 ? void 0 : config.open, ...openSettings };
@@ -70,11 +70,11 @@ function makeOpenEyes({ type: defaultType = 'classic', clients, batch, removeDup
70
70
  logger.mask(eyesServerSettings.eyesServerUrl);
71
71
  (_a = settings.userTestId) !== null && _a !== void 0 ? _a : (settings.userTestId = `${settings.testName}--${utils.general.guid()}`);
72
72
  settings.batch = { ...batch, ...settings.batch };
73
- (_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()}`);
74
- (_d = (_3 = settings.batch).buildId) !== null && _d !== void 0 ? _d : (_3.buildId = utils.general.getEnvValue('BATCH_BUILD_ID'));
75
- (_e = (_4 = settings.batch).name) !== null && _e !== void 0 ? _e : (_4.name = utils.general.getEnvValue('BATCH_NAME'));
76
- (_f = (_5 = settings.batch).sequenceName) !== null && _f !== void 0 ? _f : (_5.sequenceName = utils.general.getEnvValue('BATCH_SEQUENCE'));
77
- (_g = (_6 = settings.batch).notifyOnCompletion) !== null && _g !== void 0 ? _g : (_6.notifyOnCompletion = utils.general.getEnvValue('BATCH_NOTIFY', 'boolean'));
73
+ (_b = (_4 = settings.batch).id) !== null && _b !== void 0 ? _b : (_4.id = (_c = utils.general.getEnvValue('BATCH_ID')) !== null && _c !== void 0 ? _c : `generated-${utils.general.guid()}`);
74
+ (_d = (_5 = settings.batch).buildId) !== null && _d !== void 0 ? _d : (_5.buildId = utils.general.getEnvValue('BATCH_BUILD_ID'));
75
+ (_e = (_6 = settings.batch).name) !== null && _e !== void 0 ? _e : (_6.name = utils.general.getEnvValue('BATCH_NAME'));
76
+ (_f = (_7 = settings.batch).sequenceName) !== null && _f !== void 0 ? _f : (_7.sequenceName = utils.general.getEnvValue('BATCH_SEQUENCE'));
77
+ (_g = (_8 = settings.batch).notifyOnCompletion) !== null && _g !== void 0 ? _g : (_8.notifyOnCompletion = utils.general.getEnvValue('BATCH_NOTIFY', 'boolean'));
78
78
  (_h = settings.keepBatchOpen) !== null && _h !== void 0 ? _h : (settings.keepBatchOpen = utils.general.getEnvValue('DONT_CLOSE_BATCHES', 'boolean'));
79
79
  (_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'));
80
80
  (_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'));
@@ -90,14 +90,18 @@ function makeOpenEyes({ type: defaultType = 'classic', clients, batch, removeDup
90
90
  logger.warn(`latestCommitInfo.timestamp is an invalid ISO date string: ${settings.latestCommitInfo.timestamp}`);
91
91
  settings.latestCommitInfo = undefined;
92
92
  }
93
+ // Bare git refs from the scm integration. Kept out of `settings` because that pair is the
94
+ // session's identity on the wire; these are only a `git merge-base` argument.
95
+ let scmGitRefs;
93
96
  if (process.env.CI && (isRealBatchId(settings.batch.id) || settings.latestCommitInfo)) {
94
- await populateAutoScmInfo(isRealBatchId(settings.batch.id) ? settings.batch.id : settings.latestCommitInfo.sha);
97
+ scmGitRefs = await populateAutoScmInfo(isRealBatchId(settings.batch.id) ? settings.batch.id : settings.latestCommitInfo.sha);
95
98
  }
96
99
  if (settings.ignoreGitBranching) {
97
100
  settings.gitBranchingTimestamp = undefined;
98
101
  }
99
102
  else if (!settings.gitBranchingTimestamp) {
100
- const { branchName, parentBranchName } = settings;
103
+ const branchName = (_x = settings.branchName) !== null && _x !== void 0 ? _x : scmGitRefs === null || scmGitRefs === void 0 ? void 0 : scmGitRefs.branchName;
104
+ const parentBranchName = (_y = settings.parentBranchName) !== null && _y !== void 0 ? _y : scmGitRefs === null || scmGitRefs === void 0 ? void 0 : scmGitRefs.parentBranchName;
101
105
  if (branchName && parentBranchName && branchName !== parentBranchName) {
102
106
  settings.gitBranchingTimestamp = await (0, extract_git_info_1.extractBranchingTimestamp)({
103
107
  branchName,
@@ -112,7 +116,7 @@ function makeOpenEyes({ type: defaultType = 'classic', clients, batch, removeDup
112
116
  settings.gitBranchingTimestamp = undefined;
113
117
  }
114
118
  await (0, seam_1.applyFigmaBaselines)(settings, logger);
115
- (_x = settings.bypassCSP) !== null && _x !== void 0 ? _x : (settings.bypassCSP = utils.general.getEnvValue('BYPASS_CSP', 'boolean') === true || undefined);
119
+ (_z = settings.bypassCSP) !== null && _z !== void 0 ? _z : (settings.bypassCSP = utils.general.getEnvValue('BYPASS_CSP', 'boolean') === true || undefined);
116
120
  const driver = target && (await (0, driver_1.makeDriver)({ spec, driver: target, logger, customConfig: settings }));
117
121
  if (settings.bypassCSP) {
118
122
  logger.warn('CSP bypass is enabled.');
@@ -121,11 +125,11 @@ function makeOpenEyes({ type: defaultType = 'classic', clients, batch, removeDup
121
125
  const driverEnvironment = await (driver === null || driver === void 0 ? void 0 : driver.getEnvironment());
122
126
  const driverUrl = await (driver === null || driver === void 0 ? void 0 : driver.getDriverUrl());
123
127
  const multiDeviceTargets = [];
124
- for (const checkEnv of (_y = settings.environments) !== null && _y !== void 0 ? _y : []) {
125
- if (utils.types.has(checkEnv, 'iosDeviceInfo') && ((_z = driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.applitoolsLib) === null || _z === void 0 ? void 0 : _z.instrumented)) {
128
+ for (const checkEnv of (_0 = settings.environments) !== null && _0 !== void 0 ? _0 : []) {
129
+ if (utils.types.has(checkEnv, 'iosDeviceInfo') && ((_1 = driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.applitoolsLib) === null || _1 === void 0 ? void 0 : _1.instrumented)) {
126
130
  multiDeviceTargets.push({
127
131
  deviceInfo: checkEnv.iosDeviceInfo.deviceName,
128
- orientation: (_0 = checkEnv.iosDeviceInfo.screenOrientation) !== null && _0 !== void 0 ? _0 : 'portrait',
132
+ orientation: (_2 = checkEnv.iosDeviceInfo.screenOrientation) !== null && _2 !== void 0 ? _2 : 'portrait',
129
133
  });
130
134
  }
131
135
  }
@@ -155,7 +159,7 @@ function makeOpenEyes({ type: defaultType = 'classic', clients, batch, removeDup
155
159
  browserVersion: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.browserVersion,
156
160
  platformName: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.platformName,
157
161
  platformVersion: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.platformVersion,
158
- isApplitoolsLib: (_1 = driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.applitoolsLib) === null || _1 === void 0 ? void 0 : _1.instrumented,
162
+ isApplitoolsLib: (_3 = driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.applitoolsLib) === null || _3 === void 0 ? void 0 : _3.instrumented,
159
163
  isEC: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.isEC,
160
164
  },
161
165
  driverUrl,
@@ -193,8 +197,8 @@ function makeOpenEyes({ type: defaultType = 'classic', clients, batch, removeDup
193
197
  }); // TODO solve the types issue
194
198
  /////// END FUNCTION BODY ///////////////////
195
199
  async function populateAutoScmInfo(batchId) {
196
- var _a, _b, _c, _d;
197
- var _e;
200
+ var _a, _b;
201
+ var _c;
198
202
  const branchName = await (0, extract_git_info_1.extractGitBranch)({ execOptions: { cwd }, logger });
199
203
  const { owner: repoOwner, name: repoName } = await (0, extract_git_info_1.extractGitRepo)({ execOptions: { cwd }, logger });
200
204
  const buildId = await (0, extract_git_info_1.extractBuildIdFromCI)();
@@ -210,10 +214,10 @@ function makeOpenEyes({ type: defaultType = 'classic', clients, batch, removeDup
210
214
  if (scmInfo) {
211
215
  (_a = settings.batch) !== null && _a !== void 0 ? _a : (settings.batch = {});
212
216
  settings.batch.id = isRealBatchId(settings.batch.id) ? settings.batch.id : batchId;
213
- (_b = (_e = settings.batch).buildId) !== null && _b !== void 0 ? _b : (_e.buildId = buildId);
214
- // Takes data if it was not set by env. This is the priority according to yotam from BE
215
- (_c = settings.branchName) !== null && _c !== void 0 ? _c : (settings.branchName = scmInfo.scmSourceBranch || undefined);
216
- (_d = settings.parentBranchName) !== null && _d !== void 0 ? _d : (settings.parentBranchName = scmInfo.scmTargetBranch || undefined);
217
+ (_b = (_c = settings.batch).buildId) !== null && _b !== void 0 ? _b : (_c.buildId = buildId);
218
+ // Not setting branchName/parentBranchName is the point: the session's value overrides
219
+ // the batch's qualified name (SessionStartInfo.GetBranchName), which the merge keys on.
220
+ return { branchName: scmInfo.scmSourceBranch, parentBranchName: scmInfo.scmTargetBranch };
217
221
  }
218
222
  }
219
223
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/core",
3
- "version": "4.69.1",
3
+ "version": "4.69.2",
4
4
  "homepage": "https://applitools.com",
5
5
  "bugs": {
6
6
  "url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
@@ -63,17 +63,17 @@
63
63
  "dependencies": {
64
64
  "@applitools/core-base": "1.38.2",
65
65
  "@applitools/dom-capture": "11.8.5",
66
- "@applitools/dom-snapshot": "4.18.1",
67
- "@applitools/driver": "1.26.9",
68
- "@applitools/ec-client": "1.12.44",
66
+ "@applitools/dom-snapshot": "4.18.2",
67
+ "@applitools/driver": "1.26.10",
68
+ "@applitools/ec-client": "1.12.45",
69
69
  "@applitools/image": "1.3.2",
70
70
  "@applitools/logger": "2.3.1",
71
- "@applitools/nml-client": "1.12.1",
71
+ "@applitools/nml-client": "1.12.2",
72
72
  "@applitools/req": "1.11.3",
73
- "@applitools/screenshoter": "3.12.30",
73
+ "@applitools/screenshoter": "3.12.31",
74
74
  "@applitools/snippets": "2.9.7",
75
75
  "@applitools/socket": "1.3.17",
76
- "@applitools/ufg-client": "1.23.2",
76
+ "@applitools/ufg-client": "1.23.3",
77
77
  "@applitools/utils": "1.15.2",
78
78
  "abort-controller": "3.0.0",
79
79
  "chalk": "4.1.2",
@@ -84,10 +84,10 @@
84
84
  },
85
85
  "devDependencies": {
86
86
  "@applitools/bongo": "^5.10.0",
87
- "@applitools/spec-driver-playwright": "^1.9.9",
88
- "@applitools/spec-driver-puppeteer": "^1.8.9",
89
- "@applitools/spec-driver-selenium": "^1.8.9",
90
- "@applitools/spec-driver-webdriver": "^1.6.9",
87
+ "@applitools/spec-driver-playwright": "^1.9.10",
88
+ "@applitools/spec-driver-puppeteer": "^1.8.10",
89
+ "@applitools/spec-driver-selenium": "^1.8.10",
90
+ "@applitools/spec-driver-webdriver": "^1.6.10",
91
91
  "@applitools/test-server": "^1.4.7",
92
92
  "@applitools/test-utils": "^1.5.17",
93
93
  "@applitools/tunnel-client": "^1.12.4",