@applitools/core 2.4.13 → 2.5.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 CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 2.5.1 - 2023/4/18
6
+
7
+ ### Features
8
+ ### Bug fixes
9
+ - Fixed the issue with session metadata extraction
10
+
11
+ ## 2.5.0 - 2023/4/18
12
+
13
+ ### Features
14
+ - Added functional session feature
15
+ ### Bug fixes
16
+ - Fixed issue with when webview were wasn't recognized as web compatible world
17
+
5
18
  ## 2.4.13 - 2023/4/16
6
19
 
7
20
  ### Features
package/dist/open-eyes.js CHANGED
@@ -54,10 +54,14 @@ 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 environment = await (driver === null || driver === void 0 ? void 0 : driver.getEnvironment());
58
- if (environment === null || environment === void 0 ? void 0 : environment.isEC) {
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());
59
63
  (_r = settings.properties) !== null && _r !== void 0 ? _r : (settings.properties = []);
60
- settings.properties.push({ name: 'Running platform', value: 'Execution cloud' });
64
+ settings.properties.push({ name: 'Execution cloud', value: (environment === null || environment === void 0 ? void 0 : environment.isEC) ? 'Yes' : 'No' });
61
65
  }
62
66
  core.logEvent({
63
67
  settings: {
@@ -62,6 +62,10 @@ function makeCore(options) {
62
62
  const eyesRef = await socket.request('Core.openEyes', options);
63
63
  return makeEyes({ socket, core, eyesRef });
64
64
  },
65
+ async openFunctionalSession(_options) {
66
+ // TODO
67
+ return null;
68
+ },
65
69
  async makeManager(options) {
66
70
  const socket = await socketPromise;
67
71
  const managerRef = await socket.request('Core.makeManager', options);
@@ -107,9 +107,6 @@ function makeSpec({ socket, spec, }) {
107
107
  async getCapabilities(driver) {
108
108
  return socket.request('Driver.getCapabilities', { driver });
109
109
  },
110
- async getSessionMetadata(driver) {
111
- return socket.request('Driver.getSessionMetadata', { driver });
112
- },
113
110
  async getDriverInfo(driver) {
114
111
  return socket.request('Driver.getDriverInfo', { driver });
115
112
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/core",
3
- "version": "2.4.13",
3
+ "version": "2.5.1",
4
4
  "homepage": "https://applitools.com",
5
5
  "bugs": {
6
6
  "url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
@@ -75,19 +75,19 @@
75
75
  ]
76
76
  },
77
77
  "dependencies": {
78
- "@applitools/core-base": "1.1.48",
78
+ "@applitools/core-base": "1.1.49",
79
79
  "@applitools/dom-capture": "11.2.1",
80
80
  "@applitools/dom-snapshot": "4.7.9",
81
- "@applitools/driver": "1.11.41",
82
- "@applitools/ec-client": "1.2.20",
81
+ "@applitools/driver": "1.11.43",
82
+ "@applitools/ec-client": "1.2.22",
83
83
  "@applitools/logger": "1.1.48",
84
- "@applitools/nml-client": "1.3.46",
85
- "@applitools/req": "1.1.34",
86
- "@applitools/screenshoter": "3.7.37",
84
+ "@applitools/nml-client": "1.3.47",
85
+ "@applitools/req": "1.1.35",
86
+ "@applitools/screenshoter": "3.7.38",
87
87
  "@applitools/snippets": "2.4.19",
88
88
  "@applitools/socket": "1.0.10",
89
- "@applitools/spec-driver-webdriver": "1.0.22",
90
- "@applitools/ufg-client": "1.2.8",
89
+ "@applitools/spec-driver-webdriver": "1.0.24",
90
+ "@applitools/ufg-client": "1.2.9",
91
91
  "@applitools/utils": "1.3.32",
92
92
  "@types/ws": "8.5.4",
93
93
  "abort-controller": "3.0.0",
@@ -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.54",
104
- "@applitools/spec-driver-selenium": "^1.5.39",
105
- "@applitools/spec-driver-webdriverio": "^1.4.37",
103
+ "@applitools/spec-driver-puppeteer": "^1.1.55",
104
+ "@applitools/spec-driver-selenium": "^1.5.40",
105
+ "@applitools/spec-driver-webdriverio": "^1.4.39",
106
106
  "@applitools/test-server": "^1.1.28",
107
107
  "@applitools/test-utils": "^1.5.16",
108
108
  "@types/node": "^12.20.55",
@@ -119,9 +119,6 @@ export interface UniversalSpecDriver<T extends SpecType> {
119
119
  getCapabilities(options: {
120
120
  driver: T['driver'];
121
121
  }): Promise<Record<string, any>>;
122
- getSessionMetadata(options: {
123
- driver: T['driver'];
124
- }): Promise<any[] | null>;
125
122
  getTitle(options: {
126
123
  driver: T['driver'];
127
124
  }): Promise<string>;