@applitools/core 4.35.1 → 4.36.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 +49 -0
- package/dist/errors/test-error.js +32 -0
- package/dist/ufg/check-and-close.js +6 -1
- package/dist/ufg/check.js +6 -1
- package/dist/ufg/create-render-target-from-snapshot.js +2 -1
- package/package.json +5 -3
- package/types/errors/test-error.d.ts +5 -0
- package/types/ufg/create-render-target-from-snapshot.d.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.36.0](https://github.com/Applitools-Dev/sdk/compare/js/core@4.35.1...js/core@4.36.0) (2025-04-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add EYES_NETWORK_RETRY_LIMIT and EYES_NETWORK_RETRY_TIMEOUT environment variables ([#2911](https://github.com/Applitools-Dev/sdk/issues/2911)) ([7a1cca7](https://github.com/Applitools-Dev/sdk/commit/7a1cca73e7b6e5a377aea2d46171fdaab024c3c4))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* basic auth protected resources | FLD-2761 | FMRI-120 ([#2444](https://github.com/Applitools-Dev/sdk/issues/2444)) ([b48cf49](https://github.com/Applitools-Dev/sdk/commit/b48cf49dec50bbf1ed2ba111608a48cf09962565))
|
|
14
|
+
* simplify sandbox creation and ensure cleanup after execution ([#2869](https://github.com/Applitools-Dev/sdk/issues/2869)) ([72c5e01](https://github.com/Applitools-Dev/sdk/commit/72c5e01307f6abd83fab365a7e235124caae0694))
|
|
15
|
+
* yarn4 pnp problem ([#2871](https://github.com/Applitools-Dev/sdk/issues/2871)) ([29b6935](https://github.com/Applitools-Dev/sdk/commit/29b69358b7ce734c495b3d2e159331c12b36a117))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Performance Improvements
|
|
19
|
+
|
|
20
|
+
* cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Dependencies
|
|
24
|
+
|
|
25
|
+
* @applitools/req bumped to 1.7.10
|
|
26
|
+
#### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* req dummy ([23ddce8](https://github.com/Applitools-Dev/sdk/commit/23ddce8e3accd4b58838ec9cd722836c10310548))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
#### Performance Improvements
|
|
32
|
+
|
|
33
|
+
* cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
|
|
34
|
+
* @applitools/core-base bumped to 1.24.0
|
|
35
|
+
#### Features
|
|
36
|
+
|
|
37
|
+
* add EYES_NETWORK_RETRY_LIMIT and EYES_NETWORK_RETRY_TIMEOUT environment variables ([#2911](https://github.com/Applitools-Dev/sdk/issues/2911)) ([7a1cca7](https://github.com/Applitools-Dev/sdk/commit/7a1cca73e7b6e5a377aea2d46171fdaab024c3c4))
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
#### Bug Fixes
|
|
41
|
+
|
|
42
|
+
* core base dummy ([d445665](https://github.com/Applitools-Dev/sdk/commit/d445665e1c32e62022646c4bbdb5190fef8f4bfe))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
#### Performance Improvements
|
|
46
|
+
|
|
47
|
+
* cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
3
52
|
## [4.35.1](https://github.com/Applitools-Dev/sdk/compare/js/core@4.35.0...js/core@4.35.1) (2025-04-03)
|
|
4
53
|
|
|
5
54
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TestError = void 0;
|
|
4
|
+
const core_base_1 = require("@applitools/core-base");
|
|
5
|
+
class TestError extends core_base_1.CoreError {
|
|
6
|
+
constructor(result) {
|
|
7
|
+
if (result.status === 'Failed') {
|
|
8
|
+
super(`Test '${result.name}' of '${result.appName}' is failed! See details at ${result.url}`, {
|
|
9
|
+
reason: 'test failed',
|
|
10
|
+
result,
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
else if (result.status === 'Unresolved') {
|
|
14
|
+
if (result.isNew) {
|
|
15
|
+
super(`Test '${result.name}' of '${result.appName}' is new! Please approve the new baseline at ${result.url}`, {
|
|
16
|
+
reason: 'test new',
|
|
17
|
+
result,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
super(`Test '${result.name}' of '${result.appName}' detected differences! See details at: ${result.url}`, {
|
|
22
|
+
reason: 'test different',
|
|
23
|
+
result,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
super('');
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.TestError = TestError;
|
|
@@ -87,7 +87,12 @@ function makeCheckAndClose({ eyes, target: defaultTarget, environments: defaultE
|
|
|
87
87
|
if (utils.types.has(environment, 'iosDeviceInfo') || utils.types.has(environment, 'androidDeviceInfo')) {
|
|
88
88
|
environment.type = utils.types.has(target, 'cdt') ? 'web' : 'native';
|
|
89
89
|
}
|
|
90
|
-
const renderTargetPromise = (0, create_render_target_from_snapshot_1.createRenderTargetFromSnapshot)({
|
|
90
|
+
const renderTargetPromise = (0, create_render_target_from_snapshot_1.createRenderTargetFromSnapshot)({
|
|
91
|
+
ufgClient,
|
|
92
|
+
snapshot,
|
|
93
|
+
logger: environmentLogger,
|
|
94
|
+
urlWithCredentials: snapshot.url,
|
|
95
|
+
});
|
|
91
96
|
const baseEyes = await eyes.getBaseEyes({ settings: { environment, driver }, logger });
|
|
92
97
|
try {
|
|
93
98
|
if (signal === null || signal === void 0 ? void 0 : signal.aborted) {
|
package/dist/ufg/check.js
CHANGED
|
@@ -87,7 +87,12 @@ function makeCheck({ eyes, target: defaultTarget, environments: defaultEnvironme
|
|
|
87
87
|
if (utils.types.has(environment, 'iosDeviceInfo') || utils.types.has(environment, 'androidDeviceInfo')) {
|
|
88
88
|
environment.type = utils.types.has(target, 'cdt') ? 'web' : 'native';
|
|
89
89
|
}
|
|
90
|
-
const renderTargetPromise = (0, create_render_target_from_snapshot_1.createRenderTargetFromSnapshot)({
|
|
90
|
+
const renderTargetPromise = (0, create_render_target_from_snapshot_1.createRenderTargetFromSnapshot)({
|
|
91
|
+
ufgClient,
|
|
92
|
+
snapshot,
|
|
93
|
+
logger: environmentLogger,
|
|
94
|
+
urlWithCredentials: snapshot.url,
|
|
95
|
+
});
|
|
91
96
|
const baseEyes = await eyes.getBaseEyes({ settings: { environment, driver }, logger: environmentLogger });
|
|
92
97
|
try {
|
|
93
98
|
if (signal === null || signal === void 0 ? void 0 : signal.aborted) {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createRenderTargetFromSnapshot = void 0;
|
|
4
|
-
async function createRenderTargetFromSnapshot({ ufgClient, snapshot, logger, }) {
|
|
4
|
+
async function createRenderTargetFromSnapshot({ ufgClient, snapshot, logger, urlWithCredentials, }) {
|
|
5
5
|
return await ufgClient.createRenderTarget({
|
|
6
6
|
snapshot: snapshot.target,
|
|
7
7
|
settings: {
|
|
8
|
+
url: urlWithCredentials !== null && urlWithCredentials !== void 0 ? urlWithCredentials : snapshot.url,
|
|
8
9
|
environment: snapshot.environment,
|
|
9
10
|
cookies: snapshot.target.cookies,
|
|
10
11
|
headers: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.36.0",
|
|
4
4
|
"homepage": "https://applitools.com",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -75,14 +75,14 @@
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@applitools/core-base": "1.
|
|
78
|
+
"@applitools/core-base": "1.24.0",
|
|
79
79
|
"@applitools/dom-capture": "11.5.5",
|
|
80
80
|
"@applitools/dom-snapshot": "4.11.17",
|
|
81
81
|
"@applitools/driver": "1.21.0",
|
|
82
82
|
"@applitools/ec-client": "1.10.8",
|
|
83
83
|
"@applitools/logger": "2.1.2",
|
|
84
84
|
"@applitools/nml-client": "1.9.0",
|
|
85
|
-
"@applitools/req": "1.7.
|
|
85
|
+
"@applitools/req": "1.7.10",
|
|
86
86
|
"@applitools/screenshoter": "3.11.0",
|
|
87
87
|
"@applitools/snippets": "2.6.4",
|
|
88
88
|
"@applitools/socket": "1.2.3",
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
"chalk": "4.1.2",
|
|
95
95
|
"node-fetch": "2.6.7",
|
|
96
96
|
"semver": "7.6.2",
|
|
97
|
+
"throat": "6.0.2",
|
|
97
98
|
"webdriver": "7.31.1",
|
|
98
99
|
"ws": "8.17.1",
|
|
99
100
|
"yargs": "17.7.2"
|
|
@@ -106,6 +107,7 @@
|
|
|
106
107
|
"@applitools/test-server": "^1.2.2",
|
|
107
108
|
"@applitools/test-utils": "^1.5.17",
|
|
108
109
|
"@applitools/tunnel-client": "^1.6.4",
|
|
110
|
+
"@types/mocha": "^10.0.7",
|
|
109
111
|
"@types/node": "^12.20.55",
|
|
110
112
|
"@types/selenium-webdriver": "^4.1.2",
|
|
111
113
|
"@types/semver": "^7.5.8",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { UFGClient, RenderTarget } from '@applitools/ufg-client';
|
|
2
2
|
import { Snapshot } from './types';
|
|
3
3
|
import { Logger } from '@applitools/logger';
|
|
4
|
-
export declare function createRenderTargetFromSnapshot({ ufgClient, snapshot, logger, }: {
|
|
4
|
+
export declare function createRenderTargetFromSnapshot({ ufgClient, snapshot, logger, urlWithCredentials, }: {
|
|
5
5
|
ufgClient: UFGClient;
|
|
6
6
|
snapshot: Snapshot;
|
|
7
7
|
logger: Logger;
|
|
8
|
+
urlWithCredentials?: string;
|
|
8
9
|
}): Promise<RenderTarget>;
|