@applitools/core 4.21.1 → 4.22.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 CHANGED
@@ -1,5 +1,50 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.22.0](https://github.com/Applitools-Dev/sdk/compare/js/core@4.21.2...js/core@4.22.0) (2024-10-31)
4
+
5
+
6
+ ### Features
7
+
8
+ * html report for playwright ([#2576](https://github.com/Applitools-Dev/sdk/issues/2576)) ([f93f164](https://github.com/Applitools-Dev/sdk/commit/f93f164a289f5676bcc9d650e5e3d90b8e6a6920))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/snippets bumped to 2.6.0
14
+ #### Features
15
+
16
+ * html report for playwright ([#2576](https://github.com/Applitools-Dev/sdk/issues/2576)) ([f93f164](https://github.com/Applitools-Dev/sdk/commit/f93f164a289f5676bcc9d650e5e3d90b8e6a6920))
17
+ * @applitools/dom-snapshot bumped to 4.11.5
18
+
19
+ * @applitools/driver bumped to 1.19.5
20
+
21
+ * @applitools/spec-driver-webdriver bumped to 1.1.17
22
+
23
+ * @applitools/spec-driver-selenium bumped to 1.5.88
24
+
25
+ * @applitools/spec-driver-puppeteer bumped to 1.4.17
26
+
27
+ * @applitools/screenshoter bumped to 3.9.3
28
+
29
+ * @applitools/nml-client bumped to 1.8.15
30
+
31
+ * @applitools/core-base bumped to 1.19.0
32
+ #### Features
33
+
34
+ * html report for playwright ([#2576](https://github.com/Applitools-Dev/sdk/issues/2576)) ([f93f164](https://github.com/Applitools-Dev/sdk/commit/f93f164a289f5676bcc9d650e5e3d90b8e6a6920))
35
+ * @applitools/ec-client bumped to 1.9.11
36
+
37
+
38
+ ## [4.21.2](https://github.com/Applitools-Dev/sdk/compare/js/core@4.21.1...js/core@4.21.2) (2024-10-29)
39
+
40
+
41
+ ### Dependencies
42
+
43
+ * @applitools/screenshoter bumped to 3.9.2
44
+ #### Bug Fixes
45
+
46
+ * test in screenshoter web ([f068dbe](https://github.com/Applitools-Dev/sdk/commit/f068dbe9036163fb3e316411cfd9f47a226d7c9c))
47
+
3
48
  ## [4.21.1](https://github.com/Applitools-Dev/sdk/compare/js/core@4.21.0...js/core@4.21.1) (2024-10-28)
4
49
 
5
50
 
package/dist/open-eyes.js CHANGED
@@ -39,37 +39,37 @@ 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, _w, _x;
43
- var _y, _z, _0, _1, _2, _3;
42
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
43
+ var _x, _y, _z, _0, _1;
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 = (_y = settings.batch).id) !== null && _b !== void 0 ? _b : (_y.id = utils.general.getEnvValue('BATCH_ID'));
50
- (_c = (_z = settings.batch).buildId) !== null && _c !== void 0 ? _c : (_z.buildId = utils.general.getEnvValue('BATCH_BUILD_ID'));
51
- (_d = (_0 = settings.batch).name) !== null && _d !== void 0 ? _d : (_0.name = utils.general.getEnvValue('BATCH_NAME'));
52
- (_e = (_1 = settings.batch).sequenceName) !== null && _e !== void 0 ? _e : (_1.sequenceName = utils.general.getEnvValue('BATCH_SEQUENCE'));
53
- (_f = (_2 = settings.batch).notifyOnCompletion) !== null && _f !== void 0 ? _f : (_2.notifyOnCompletion = utils.general.getEnvValue('BATCH_NOTIFY', 'boolean'));
54
- (_g = settings.keepBatchOpen) !== null && _g !== void 0 ? _g : (settings.keepBatchOpen = utils.general.getEnvValue('DONT_CLOSE_BATCHES', 'boolean'));
55
- (_h = settings.branchName) !== null && _h !== void 0 ? _h : (settings.branchName = utils.general.getEnvValue('BRANCH'));
56
- (_j = settings.parentBranchName) !== null && _j !== void 0 ? _j : (settings.parentBranchName = utils.general.getEnvValue('PARENT_BRANCH'));
57
- (_k = settings.baselineBranchName) !== null && _k !== void 0 ? _k : (settings.baselineBranchName = utils.general.getEnvValue('BASELINE_BRANCH'));
58
- (_l = settings.gitBranchingTimestamp) !== null && _l !== void 0 ? _l : (settings.gitBranchingTimestamp = utils.general.getEnvValue('GIT_MERGE_BASE_TIMESTAMP'));
59
- (_m = settings.latestCommitInfo) !== null && _m !== void 0 ? _m : (settings.latestCommitInfo = getLatestCommitInfoFromEnvVars(logger));
60
- (_o = settings.ufgServerUrl) !== null && _o !== void 0 ? _o : (settings.ufgServerUrl = utils.general.getEnvValue('UFG_SERVER_URL'));
61
- (_p = settings.ignoreBaseline) !== null && _p !== void 0 ? _p : (settings.ignoreBaseline = false);
62
- (_q = settings.compareWithParentBranch) !== null && _q !== void 0 ? _q : (settings.compareWithParentBranch = false);
63
- (_r = settings.removeDuplicateTests) !== null && _r !== void 0 ? _r : (settings.removeDuplicateTests = removeDuplicateTests);
64
- (_s = settings.latestCommitInfo) !== null && _s !== void 0 ? _s : (settings.latestCommitInfo = await (0, extract_git_info_1.extractLatestCommitInfo)({ execOptions: { cwd }, logger }));
49
+ (_b = (_x = settings.batch).id) !== null && _b !== void 0 ? _b : (_x.id = (_c = utils.general.getEnvValue('BATCH_ID')) !== null && _c !== void 0 ? _c : `generated-${utils.general.guid()}`);
50
+ (_d = (_y = settings.batch).buildId) !== null && _d !== void 0 ? _d : (_y.buildId = utils.general.getEnvValue('BATCH_BUILD_ID'));
51
+ (_e = (_z = settings.batch).name) !== null && _e !== void 0 ? _e : (_z.name = utils.general.getEnvValue('BATCH_NAME'));
52
+ (_f = (_0 = settings.batch).sequenceName) !== null && _f !== void 0 ? _f : (_0.sequenceName = utils.general.getEnvValue('BATCH_SEQUENCE'));
53
+ (_g = (_1 = settings.batch).notifyOnCompletion) !== null && _g !== void 0 ? _g : (_1.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 && (((_t = settings.batch) === null || _t === void 0 ? void 0 : _t.id) || settings.latestCommitInfo)) {
70
- await populateAutoScmInfo(((_u = settings.batch) === null || _u === void 0 ? void 0 : _u.id) || settings.latestCommitInfo.sha);
69
+ const isRealBatchId = !!settings.batch.id && !((_u = settings.batch) === null || _u === void 0 ? void 0 : _u.id.startsWith('generated'));
70
+ if (process.env.CI && (isRealBatchId || settings.latestCommitInfo)) {
71
+ await populateAutoScmInfo(settings.batch.id || settings.latestCommitInfo.sha);
71
72
  }
72
- (_v = (_3 = settings.batch).id) !== null && _v !== void 0 ? _v : (_3.id = `generated-${utils.general.guid()}`);
73
73
  if (settings.ignoreGitBranching) {
74
74
  settings.gitBranchingTimestamp = undefined;
75
75
  }
@@ -98,7 +98,7 @@ function makeOpenEyes({ type: defaultType = 'classic', clients, batch, removeDup
98
98
  event: {
99
99
  type: 'openEyes',
100
100
  userTestId: settings.userTestId,
101
- concurrency: (_w = cores === null || cores === void 0 ? void 0 : cores[type].concurrency) !== null && _w !== void 0 ? _w : core.concurrency,
101
+ concurrency: (_v = cores === null || cores === void 0 ? void 0 : cores[type].concurrency) !== null && _v !== void 0 ? _v : core.concurrency,
102
102
  environment,
103
103
  driver: {
104
104
  deviceName: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.deviceName,
@@ -106,7 +106,7 @@ function makeOpenEyes({ type: defaultType = 'classic', clients, batch, removeDup
106
106
  browserVersion: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.browserVersion,
107
107
  platformName: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.platformName,
108
108
  platformVersion: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.platformVersion,
109
- isApplitoolsLib: (_x = driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.applitoolsLib) === null || _x === void 0 ? void 0 : _x.instrumented,
109
+ isApplitoolsLib: (_w = driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.applitoolsLib) === null || _w === void 0 ? void 0 : _w.instrumented,
110
110
  isEC: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.isEC,
111
111
  },
112
112
  driverUrl,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/core",
3
- "version": "4.21.1",
3
+ "version": "4.22.0",
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.18.0",
77
+ "@applitools/core-base": "1.19.0",
78
78
  "@applitools/dom-capture": "11.5.0",
79
- "@applitools/dom-snapshot": "4.11.4",
80
- "@applitools/driver": "1.19.4",
81
- "@applitools/ec-client": "1.9.10",
79
+ "@applitools/dom-snapshot": "4.11.5",
80
+ "@applitools/driver": "1.19.5",
81
+ "@applitools/ec-client": "1.9.11",
82
82
  "@applitools/logger": "2.0.18",
83
- "@applitools/nml-client": "1.8.14",
83
+ "@applitools/nml-client": "1.8.15",
84
84
  "@applitools/req": "1.7.2",
85
- "@applitools/screenshoter": "3.9.1",
86
- "@applitools/snippets": "2.5.2",
85
+ "@applitools/screenshoter": "3.9.3",
86
+ "@applitools/snippets": "2.6.0",
87
87
  "@applitools/socket": "1.1.18",
88
- "@applitools/spec-driver-webdriver": "1.1.16",
88
+ "@applitools/spec-driver-webdriver": "1.1.17",
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.16",
104
- "@applitools/spec-driver-selenium": "^1.5.87",
103
+ "@applitools/spec-driver-puppeteer": "^1.4.17",
104
+ "@applitools/spec-driver-selenium": "^1.5.88",
105
105
  "@applitools/test-server": "^1.2.2",
106
106
  "@applitools/test-utils": "^1.5.17",
107
107
  "@applitools/tunnel-client": "^1.5.8",