@applitools/core 4.35.1 → 4.37.0-debug-20250429

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,138 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.37.0](https://github.com/Applitools-Dev/sdk/compare/js/core@4.36.0...js/core@4.37.0) (2025-04-17)
4
+
5
+
6
+ ### Features
7
+
8
+ * height layout breakpoints ([#2801](https://github.com/Applitools-Dev/sdk/issues/2801)) ([819e241](https://github.com/Applitools-Dev/sdk/commit/819e2418f1fd93220a07dfbcf1157ffcf4995dd7))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/dom-snapshot bumped to 4.11.18
14
+ #### Bug Fixes
15
+
16
+ * 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))
17
+
18
+
19
+
20
+ * @applitools/snippets bumped to 2.6.5
21
+ #### Performance Improvements
22
+
23
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
24
+ * @applitools/driver bumped to 1.21.1
25
+ #### Bug Fixes
26
+
27
+ * executePoll error logging FLD-2870 ([#2890](https://github.com/Applitools-Dev/sdk/issues/2890)) ([a8ff720](https://github.com/Applitools-Dev/sdk/commit/a8ff720efafacabe2023282748a6d8a0f1b3ff73))
28
+
29
+
30
+
31
+ * @applitools/spec-driver-webdriver bumped to 1.2.2
32
+ #### Performance Improvements
33
+
34
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
35
+
36
+
37
+
38
+ * @applitools/spec-driver-selenium bumped to 1.5.98
39
+ #### Performance Improvements
40
+
41
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
42
+
43
+
44
+
45
+ * @applitools/spec-driver-puppeteer bumped to 1.4.27
46
+ #### Performance Improvements
47
+
48
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
49
+
50
+
51
+
52
+ * @applitools/screenshoter bumped to 3.11.1
53
+ #### Performance Improvements
54
+
55
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
56
+
57
+
58
+
59
+ * @applitools/nml-client bumped to 1.9.1
60
+ #### Performance Improvements
61
+
62
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
63
+
64
+
65
+
66
+ * @applitools/tunnel-client bumped to 1.6.5
67
+ #### Bug Fixes
68
+
69
+ * enhance error messages in tunnel client ([cab26e6](https://github.com/Applitools-Dev/sdk/commit/cab26e6e3d56fa3cbabaa1a9c68de13046b8f57e))
70
+ * @applitools/ufg-client bumped to 1.16.9
71
+ #### Bug Fixes
72
+
73
+ * 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))
74
+
75
+
76
+ #### Performance Improvements
77
+
78
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
79
+ * @applitools/ec-client bumped to 1.10.9
80
+ #### Performance Improvements
81
+
82
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
83
+
84
+
85
+
86
+
87
+ ## [4.36.0](https://github.com/Applitools-Dev/sdk/compare/js/core@4.35.1...js/core@4.36.0) (2025-04-13)
88
+
89
+
90
+ ### Features
91
+
92
+ * 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))
93
+
94
+
95
+ ### Bug Fixes
96
+
97
+ * 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))
98
+ * 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))
99
+ * yarn4 pnp problem ([#2871](https://github.com/Applitools-Dev/sdk/issues/2871)) ([29b6935](https://github.com/Applitools-Dev/sdk/commit/29b69358b7ce734c495b3d2e159331c12b36a117))
100
+
101
+
102
+ ### Performance Improvements
103
+
104
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
105
+
106
+
107
+ ### Dependencies
108
+
109
+ * @applitools/req bumped to 1.7.10
110
+ #### Bug Fixes
111
+
112
+ * req dummy ([23ddce8](https://github.com/Applitools-Dev/sdk/commit/23ddce8e3accd4b58838ec9cd722836c10310548))
113
+
114
+
115
+ #### Performance Improvements
116
+
117
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
118
+ * @applitools/core-base bumped to 1.24.0
119
+ #### Features
120
+
121
+ * 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))
122
+
123
+
124
+ #### Bug Fixes
125
+
126
+ * core base dummy ([d445665](https://github.com/Applitools-Dev/sdk/commit/d445665e1c32e62022646c4bbdb5190fef8f4bfe))
127
+
128
+
129
+ #### Performance Improvements
130
+
131
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
132
+
133
+
134
+
135
+
3
136
  ## [4.35.1](https://github.com/Applitools-Dev/sdk/compare/js/core@4.35.0...js/core@4.35.1) (2025-04-03)
4
137
 
5
138
 
@@ -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)({ ufgClient, snapshot, logger: environmentLogger });
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)({ ufgClient, snapshot, logger: environmentLogger });
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.35.1",
3
+ "version": "4.37.0-debug-20250429",
4
4
  "homepage": "https://applitools.com",
5
5
  "bugs": {
6
6
  "url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
@@ -75,25 +75,26 @@
75
75
  }
76
76
  },
77
77
  "dependencies": {
78
- "@applitools/core-base": "1.23.0",
78
+ "@applitools/core-base": "1.24.0-debug-20250429",
79
79
  "@applitools/dom-capture": "11.5.5",
80
- "@applitools/dom-snapshot": "4.11.17",
81
- "@applitools/driver": "1.21.0",
82
- "@applitools/ec-client": "1.10.8",
80
+ "@applitools/dom-snapshot": "4.11.18",
81
+ "@applitools/driver": "1.21.1",
82
+ "@applitools/ec-client": "1.10.9",
83
83
  "@applitools/logger": "2.1.2",
84
- "@applitools/nml-client": "1.9.0",
85
- "@applitools/req": "1.7.9",
86
- "@applitools/screenshoter": "3.11.0",
87
- "@applitools/snippets": "2.6.4",
84
+ "@applitools/nml-client": "1.9.1",
85
+ "@applitools/req": "1.7.10",
86
+ "@applitools/screenshoter": "3.11.1",
87
+ "@applitools/snippets": "2.6.5",
88
88
  "@applitools/socket": "1.2.3",
89
- "@applitools/spec-driver-webdriver": "1.2.1",
90
- "@applitools/ufg-client": "1.16.8",
89
+ "@applitools/spec-driver-webdriver": "1.2.2",
90
+ "@applitools/ufg-client": "1.16.9",
91
91
  "@applitools/utils": "1.8.0",
92
92
  "@types/ws": "8.5.5",
93
93
  "abort-controller": "3.0.0",
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"
@@ -101,11 +102,12 @@
101
102
  "devDependencies": {
102
103
  "@applitools/bongo": "^5.10.0",
103
104
  "@applitools/sea": "^1.0.0",
104
- "@applitools/spec-driver-puppeteer": "^1.4.26",
105
- "@applitools/spec-driver-selenium": "^1.5.97",
105
+ "@applitools/spec-driver-puppeteer": "^1.4.27",
106
+ "@applitools/spec-driver-selenium": "^1.5.98",
106
107
  "@applitools/test-server": "^1.2.2",
107
108
  "@applitools/test-utils": "^1.5.17",
108
- "@applitools/tunnel-client": "^1.6.4",
109
+ "@applitools/tunnel-client": "^1.6.5",
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",
@@ -0,0 +1,5 @@
1
+ import type { TestResult } from '@applitools/core-base';
2
+ import { CoreError } from '@applitools/core-base';
3
+ export declare class TestError extends CoreError {
4
+ constructor(result: TestResult);
5
+ }
@@ -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>;