@applitools/core 2.4.12 → 2.5.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 +13 -0
- package/dist/open-eyes.js +7 -3
- package/dist/universal/core.js +4 -0
- package/dist/universal/spec-driver.js +0 -3
- package/dist/utils/format-results.js +1 -1
- package/package.json +12 -12
- package/types/universal/types.d.ts +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 2.5.0 - 2023/4/18
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
- Added functional session feature
|
|
9
|
+
### Bug fixes
|
|
10
|
+
- Fixed issue with when webview were wasn't recognized as web compatible world
|
|
11
|
+
|
|
12
|
+
## 2.4.13 - 2023/4/16
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
### Bug fixes
|
|
16
|
+
- format result `hostDisplaySize`
|
|
17
|
+
|
|
5
18
|
## 2.4.12 - 2023/4/12
|
|
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
|
|
58
|
-
|
|
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: '
|
|
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: {
|
package/dist/universal/core.js
CHANGED
|
@@ -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
|
},
|
|
@@ -73,7 +73,7 @@ function toHierarchicTAPString(results, { includeSubTests = true, markNewAsPasse
|
|
|
73
73
|
? currentResult.appUrls.session
|
|
74
74
|
: "No URL (session didn't start).";
|
|
75
75
|
tapString += `#\tTest url: ${url}\n`;
|
|
76
|
-
tapString += `#\tBrowser: ${currentResult.hostApp}, Viewport: ${currentResult.hostDisplaySize}\n`;
|
|
76
|
+
tapString += `#\tBrowser: ${currentResult.hostApp}, Viewport: ${currentResult.hostDisplaySize.width}X${currentResult.hostDisplaySize.width}\n`;
|
|
77
77
|
if (includeSubTests) {
|
|
78
78
|
if (currentResult.stepsInfo && currentResult.stepsInfo.length > 0) {
|
|
79
79
|
tapString += `\t1..${currentResult.stepsInfo.length}\n`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
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.
|
|
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.
|
|
82
|
-
"@applitools/ec-client": "1.2.
|
|
81
|
+
"@applitools/driver": "1.11.42",
|
|
82
|
+
"@applitools/ec-client": "1.2.21",
|
|
83
83
|
"@applitools/logger": "1.1.48",
|
|
84
|
-
"@applitools/nml-client": "1.3.
|
|
85
|
-
"@applitools/req": "1.1.
|
|
86
|
-
"@applitools/screenshoter": "3.7.
|
|
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.
|
|
90
|
-
"@applitools/ufg-client": "1.2.
|
|
89
|
+
"@applitools/spec-driver-webdriver": "1.0.23",
|
|
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.
|
|
104
|
-
"@applitools/spec-driver-selenium": "^1.5.
|
|
105
|
-
"@applitools/spec-driver-webdriverio": "^1.4.
|
|
103
|
+
"@applitools/spec-driver-puppeteer": "^1.1.55",
|
|
104
|
+
"@applitools/spec-driver-selenium": "^1.5.40",
|
|
105
|
+
"@applitools/spec-driver-webdriverio": "^1.4.38",
|
|
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>;
|