@applitools/core 2.5.6 → 2.5.8

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
@@ -2,6 +2,18 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 2.5.8 - 2023/5/1
6
+
7
+ ### Features
8
+ ### Bug fixes
9
+ - Remove "Execution Cloud" custom property
10
+
11
+ ## 2.5.7 - 2023/4/28
12
+
13
+ ### Features
14
+ ### Bug fixes
15
+ - Fixed detection of emulated mobile drivers
16
+
5
17
  ## 2.5.6 - 2023/4/28
6
18
 
7
19
  ### Features
package/dist/open-eyes.js CHANGED
@@ -36,17 +36,17 @@ const extract_ci_provider_1 = require("./utils/extract-ci-provider");
36
36
  const utils = __importStar(require("@applitools/utils"));
37
37
  function makeOpenEyes({ type: defaultType = 'classic', concurrency, batch, core, cores, spec, logger: defaultLogger, }) {
38
38
  return async function openEyes({ type = defaultType, settings, config, target, logger = defaultLogger, }) {
39
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
40
- var _v, _w, _x, _y;
39
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
40
+ var _u, _v, _w, _x;
41
41
  settings = { ...config === null || config === void 0 ? void 0 : config.open, ...settings };
42
42
  (_a = settings.userTestId) !== null && _a !== void 0 ? _a : (settings.userTestId = `${settings.testName}--${utils.general.guid()}`);
43
43
  (_b = settings.serverUrl) !== null && _b !== void 0 ? _b : (settings.serverUrl = (_c = utils.general.getEnvValue('SERVER_URL')) !== null && _c !== void 0 ? _c : 'https://eyesapi.applitools.com');
44
44
  (_d = settings.apiKey) !== null && _d !== void 0 ? _d : (settings.apiKey = utils.general.getEnvValue('API_KEY'));
45
45
  settings.batch = { ...batch, ...settings.batch };
46
- (_e = (_v = settings.batch).id) !== null && _e !== void 0 ? _e : (_v.id = (_f = utils.general.getEnvValue('BATCH_ID')) !== null && _f !== void 0 ? _f : `generated-${utils.general.guid()}`);
47
- (_g = (_w = settings.batch).name) !== null && _g !== void 0 ? _g : (_w.name = utils.general.getEnvValue('BATCH_NAME'));
48
- (_h = (_x = settings.batch).sequenceName) !== null && _h !== void 0 ? _h : (_x.sequenceName = utils.general.getEnvValue('BATCH_SEQUENCE'));
49
- (_j = (_y = settings.batch).notifyOnCompletion) !== null && _j !== void 0 ? _j : (_y.notifyOnCompletion = utils.general.getEnvValue('BATCH_NOTIFY', 'boolean'));
46
+ (_e = (_u = settings.batch).id) !== null && _e !== void 0 ? _e : (_u.id = (_f = utils.general.getEnvValue('BATCH_ID')) !== null && _f !== void 0 ? _f : `generated-${utils.general.guid()}`);
47
+ (_g = (_v = settings.batch).name) !== null && _g !== void 0 ? _g : (_v.name = utils.general.getEnvValue('BATCH_NAME'));
48
+ (_h = (_w = settings.batch).sequenceName) !== null && _h !== void 0 ? _h : (_w.sequenceName = utils.general.getEnvValue('BATCH_SEQUENCE'));
49
+ (_j = (_x = settings.batch).notifyOnCompletion) !== null && _j !== void 0 ? _j : (_x.notifyOnCompletion = utils.general.getEnvValue('BATCH_NOTIFY', 'boolean'));
50
50
  (_k = settings.keepBatchOpen) !== null && _k !== void 0 ? _k : (settings.keepBatchOpen = utils.general.getEnvValue('DONT_CLOSE_BATCHES', 'boolean'));
51
51
  (_l = settings.branchName) !== null && _l !== void 0 ? _l : (settings.branchName = utils.general.getEnvValue('BRANCH'));
52
52
  (_m = settings.parentBranchName) !== null && _m !== void 0 ? _m : (settings.parentBranchName = utils.general.getEnvValue('PARENT_BRANCH'));
@@ -54,15 +54,6 @@ function makeOpenEyes({ type: defaultType = 'classic', concurrency, batch, core,
54
54
  (_p = settings.ignoreBaseline) !== null && _p !== void 0 ? _p : (settings.ignoreBaseline = false);
55
55
  (_q = settings.compareWithParentBranch) !== null && _q !== void 0 ? _q : (settings.compareWithParentBranch = false);
56
56
  const driver = target && (await (0, driver_1.makeDriver)({ spec, driver: target, logger, customConfig: settings }));
57
- const account = await core.getAccountInfo({
58
- settings: settings,
59
- logger,
60
- });
61
- if (account.ecEnabled) {
62
- const environment = await (driver === null || driver === void 0 ? void 0 : driver.getEnvironment());
63
- (_r = settings.properties) !== null && _r !== void 0 ? _r : (settings.properties = []);
64
- settings.properties.push({ name: 'Execution Cloud', value: (environment === null || environment === void 0 ? void 0 : environment.isEC) ? 'Yes' : 'No' });
65
- }
66
57
  core.logEvent({
67
58
  settings: {
68
59
  serverUrl: settings.serverUrl,
@@ -73,7 +64,7 @@ function makeOpenEyes({ type: defaultType = 'classic', concurrency, batch, core,
73
64
  event: {
74
65
  type: 'runnerStarted',
75
66
  testConcurrency: concurrency,
76
- concurrentRendersPerTest: (_u = (_t = (_s = config === null || config === void 0 ? void 0 : config.check) === null || _s === void 0 ? void 0 : _s.renderers) === null || _t === void 0 ? void 0 : _t.length) !== null && _u !== void 0 ? _u : 1,
67
+ concurrentRendersPerTest: (_t = (_s = (_r = config === null || config === void 0 ? void 0 : config.check) === null || _r === void 0 ? void 0 : _r.renderers) === null || _s === void 0 ? void 0 : _s.length) !== null && _t !== void 0 ? _t : 1,
77
68
  node: { version: process.version, platform: process.platform, arch: process.arch },
78
69
  driverUrl: await (driver === null || driver === void 0 ? void 0 : driver.getDriverUrl()),
79
70
  extractedCIProvider: (0, extract_ci_provider_1.extractCIProvider)(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/core",
3
- "version": "2.5.6",
3
+ "version": "2.5.8",
4
4
  "homepage": "https://applitools.com",
5
5
  "bugs": {
6
6
  "url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
@@ -78,15 +78,15 @@
78
78
  "@applitools/core-base": "1.1.53",
79
79
  "@applitools/dom-capture": "11.2.1",
80
80
  "@applitools/dom-snapshot": "4.7.9",
81
- "@applitools/driver": "1.11.46",
82
- "@applitools/ec-client": "1.2.25",
81
+ "@applitools/driver": "1.11.47",
82
+ "@applitools/ec-client": "1.2.27",
83
83
  "@applitools/logger": "1.1.52",
84
- "@applitools/nml-client": "1.3.50",
84
+ "@applitools/nml-client": "1.3.51",
85
85
  "@applitools/req": "1.2.5",
86
- "@applitools/screenshoter": "3.7.40",
86
+ "@applitools/screenshoter": "3.7.41",
87
87
  "@applitools/snippets": "2.4.19",
88
88
  "@applitools/socket": "1.0.13",
89
- "@applitools/spec-driver-webdriver": "1.0.27",
89
+ "@applitools/spec-driver-webdriver": "1.0.28",
90
90
  "@applitools/ufg-client": "1.2.12",
91
91
  "@applitools/utils": "1.3.35",
92
92
  "@types/ws": "8.5.4",
@@ -100,9 +100,9 @@
100
100
  "devDependencies": {
101
101
  "@applitools/bongo": "^3.0.3",
102
102
  "@applitools/sdk-coverage-tests": "^3.0.2",
103
- "@applitools/spec-driver-puppeteer": "^1.1.57",
104
- "@applitools/spec-driver-selenium": "^1.5.41",
105
- "@applitools/spec-driver-webdriverio": "^1.4.42",
103
+ "@applitools/spec-driver-puppeteer": "^1.1.58",
104
+ "@applitools/spec-driver-selenium": "^1.5.42",
105
+ "@applitools/spec-driver-webdriverio": "^1.4.43",
106
106
  "@applitools/test-server": "^1.1.31",
107
107
  "@applitools/test-utils": "^1.5.16",
108
108
  "@types/node": "^12.20.55",