@applitools/eyes 1.29.3 → 1.30.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 CHANGED
@@ -1,5 +1,153 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.30.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes-v1.29.4...js/eyes@1.30.0) (2024-12-31)
4
+
5
+
6
+ ### Features
7
+
8
+ * ability to download side by side with highlighted diffs (2419) ([#2530](https://github.com/Applitools-Dev/sdk/issues/2530)) ([e06ce69](https://github.com/Applitools-Dev/sdk/commit/e06ce699f30e9e444ac58dafdf5989ff1c96ca1c))
9
+ * add an option to keep the navigation bar for android devices ([#2608](https://github.com/Applitools-Dev/sdk/issues/2608)) ([e7647e0](https://github.com/Applitools-Dev/sdk/commit/e7647e0105a7aa47e6bf3b20ab033f1e389ca849))
10
+ * add chrome emulation devices ([#2559](https://github.com/Applitools-Dev/sdk/issues/2559)) ([0499aaf](https://github.com/Applitools-Dev/sdk/commit/0499aaf3bb809d2ac0105b4493e6f6bb8730ea3f))
11
+ * capture status bar ([#2571](https://github.com/Applitools-Dev/sdk/issues/2571)) ([5e1c75e](https://github.com/Applitools-Dev/sdk/commit/5e1c75ef9cf34af80f08806a3bceaf06a94f2780))
12
+ * disable broker url cache ([#2428](https://github.com/Applitools-Dev/sdk/issues/2428)) ([cb8d5fe](https://github.com/Applitools-Dev/sdk/commit/cb8d5fefb13d3ab42984d2bd4d4ac3d4e10646b0))
13
+ * dynamic regions ([#2538](https://github.com/Applitools-Dev/sdk/issues/2538)) ([d8b5c48](https://github.com/Applitools-Dev/sdk/commit/d8b5c48fb35f9789c702447314dc72b4f415ade1))
14
+ * html report for playwright ([#2576](https://github.com/Applitools-Dev/sdk/issues/2576)) ([f93f164](https://github.com/Applitools-Dev/sdk/commit/f93f164a289f5676bcc9d650e5e3d90b8e6a6920))
15
+ * ios 18 devices enum ([#2584](https://github.com/Applitools-Dev/sdk/issues/2584)) ([8eab653](https://github.com/Applitools-Dev/sdk/commit/8eab653f99733839bdec43d86089edc35abcf8e8))
16
+ * logger masking ([#2640](https://github.com/Applitools-Dev/sdk/issues/2640)) ([bd69d21](https://github.com/Applitools-Dev/sdk/commit/bd69d21f6341447b1acdb042f4ee1a6328d7428f))
17
+ * offline cli with config ([#2646](https://github.com/Applitools-Dev/sdk/issues/2646)) ([0589dc4](https://github.com/Applitools-Dev/sdk/commit/0589dc429a0c94451e957932106f258dadfd88cc))
18
+ * remove Android NMG API ([#2566](https://github.com/Applitools-Dev/sdk/issues/2566)) ([750c0f0](https://github.com/Applitools-Dev/sdk/commit/750c0f0263e5ff06f86055e7ba0c3fb47cadb620))
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * don't pass RectangleSize to core ([#2673](https://github.com/Applitools-Dev/sdk/issues/2673)) ([47653ea](https://github.com/Applitools-Dev/sdk/commit/47653eae44d4c9693cc84e9209bb08f8d070c4af))
24
+ * offline cli chalk error ([c7c659a](https://github.com/Applitools-Dev/sdk/commit/c7c659aa889080f2fc7763152db2447211fe1487))
25
+ * organize configuration alphabetically and add getters and setters ([684490d](https://github.com/Applitools-Dev/sdk/commit/684490d8d85d1dd0f07bafdcc38febfcf7c58d08))
26
+ * trigger playwright release ([1d3ea3e](https://github.com/Applitools-Dev/sdk/commit/1d3ea3e4d2059c12d8013f04c18f5facffbc5846))
27
+ * trigger release ([c97dbfc](https://github.com/Applitools-Dev/sdk/commit/c97dbfc89245f374917702a867b87f2794155e54))
28
+ * update ios devices enums ([9b4614f](https://github.com/Applitools-Dev/sdk/commit/9b4614f09bbbe42cf99824d76893f9067aab2cc4))
29
+
30
+
31
+ ### Code Refactoring
32
+
33
+ * start linting "no-floating-promises" (wip) ([#2539](https://github.com/Applitools-Dev/sdk/issues/2539)) ([51b91cb](https://github.com/Applitools-Dev/sdk/commit/51b91cb15603f7d68e4bd6a16eb0f80e3f380295))
34
+
35
+
36
+ ### Dependencies
37
+
38
+ * @applitools/utils bumped to 1.7.7
39
+ #### Bug Fixes
40
+
41
+ * shim process execution functions for browser environment ([#2698](https://github.com/Applitools-Dev/sdk/issues/2698)) ([8d77db4](https://github.com/Applitools-Dev/sdk/commit/8d77db48e1c7fd54cad92c89a819a924255e5868))
42
+ * @applitools/logger bumped to 2.1.0
43
+ #### Features
44
+
45
+ * logger masking ([#2640](https://github.com/Applitools-Dev/sdk/issues/2640)) ([bd69d21](https://github.com/Applitools-Dev/sdk/commit/bd69d21f6341447b1acdb042f4ee1a6328d7428f))
46
+
47
+
48
+
49
+ * @applitools/dom-snapshot bumped to 4.11.13
50
+ #### Bug Fixes
51
+
52
+ * code scanning issue ([#2687](https://github.com/Applitools-Dev/sdk/issues/2687)) ([f301056](https://github.com/Applitools-Dev/sdk/commit/f301056cccfc9cc0c21ceedbd521d8f4b054f058))
53
+
54
+
55
+
56
+ * @applitools/socket bumped to 1.2.0
57
+ #### Features
58
+
59
+ * logger masking ([#2640](https://github.com/Applitools-Dev/sdk/issues/2640)) ([bd69d21](https://github.com/Applitools-Dev/sdk/commit/bd69d21f6341447b1acdb042f4ee1a6328d7428f))
60
+
61
+
62
+
63
+ * @applitools/core-base bumped to 1.22.0
64
+ #### Features
65
+
66
+ * deterministic output in offline execution ([#2711](https://github.com/Applitools-Dev/sdk/issues/2711)) ([5e8c7ca](https://github.com/Applitools-Dev/sdk/commit/5e8c7ca43c98e7ba6aed0c1a66c5a60b4001aeff))
67
+ * logger masking ([#2640](https://github.com/Applitools-Dev/sdk/issues/2640)) ([bd69d21](https://github.com/Applitools-Dev/sdk/commit/bd69d21f6341447b1acdb042f4ee1a6328d7428f))
68
+
69
+
70
+
71
+ * @applitools/req bumped to 1.7.6
72
+
73
+ * @applitools/image bumped to 1.1.16
74
+
75
+ * @applitools/dom-capture bumped to 11.5.3
76
+ #### Bug Fixes
77
+
78
+ * code scanning issue ([#2687](https://github.com/Applitools-Dev/sdk/issues/2687)) ([f301056](https://github.com/Applitools-Dev/sdk/commit/f301056cccfc9cc0c21ceedbd521d8f4b054f058))
79
+ * @applitools/driver bumped to 1.20.2
80
+
81
+ * @applitools/spec-driver-puppeteer bumped to 1.4.22
82
+
83
+ * @applitools/tunnel-client bumped to 1.6.0
84
+ #### Features
85
+
86
+ * logger masking ([#2640](https://github.com/Applitools-Dev/sdk/issues/2640)) ([bd69d21](https://github.com/Applitools-Dev/sdk/commit/bd69d21f6341447b1acdb042f4ee1a6328d7428f))
87
+
88
+
89
+
90
+ * @applitools/ec-client bumped to 1.10.0
91
+ #### Features
92
+
93
+ * logger masking ([#2640](https://github.com/Applitools-Dev/sdk/issues/2640)) ([bd69d21](https://github.com/Applitools-Dev/sdk/commit/bd69d21f6341447b1acdb042f4ee1a6328d7428f))
94
+
95
+
96
+
97
+ * @applitools/spec-driver-webdriver bumped to 1.1.22
98
+
99
+ * @applitools/spec-driver-selenium bumped to 1.5.93
100
+
101
+ * @applitools/screenshoter bumped to 3.10.2
102
+
103
+ * @applitools/nml-client bumped to 1.8.21
104
+
105
+ * @applitools/ufg-client bumped to 1.16.0
106
+ #### Features
107
+
108
+ * deterministic output in offline execution ([#2711](https://github.com/Applitools-Dev/sdk/issues/2711)) ([5e8c7ca](https://github.com/Applitools-Dev/sdk/commit/5e8c7ca43c98e7ba6aed0c1a66c5a60b4001aeff))
109
+
110
+
111
+ #### Bug Fixes
112
+
113
+ * code scanning issue ([#2687](https://github.com/Applitools-Dev/sdk/issues/2687)) ([f301056](https://github.com/Applitools-Dev/sdk/commit/f301056cccfc9cc0c21ceedbd521d8f4b054f058))
114
+
115
+
116
+
117
+ * @applitools/core bumped to 4.28.0
118
+ #### Features
119
+
120
+ * deterministic output in offline execution ([#2711](https://github.com/Applitools-Dev/sdk/issues/2711)) ([5e8c7ca](https://github.com/Applitools-Dev/sdk/commit/5e8c7ca43c98e7ba6aed0c1a66c5a60b4001aeff))
121
+ * logger masking ([#2640](https://github.com/Applitools-Dev/sdk/issues/2640)) ([bd69d21](https://github.com/Applitools-Dev/sdk/commit/bd69d21f6341447b1acdb042f4ee1a6328d7428f))
122
+
123
+
124
+ #### Bug Fixes
125
+
126
+ * take snapshots with coded regions on pages that has cross origin frames ([#2705](https://github.com/Applitools-Dev/sdk/issues/2705)) ([5972fec](https://github.com/Applitools-Dev/sdk/commit/5972fec890a1454a9f96c4eddcf17634e72111aa))
127
+
128
+
129
+
130
+
131
+ ## [1.29.4](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.29.3...js/eyes@1.29.4) (2024-12-22)
132
+
133
+
134
+ ### Dependencies
135
+
136
+ * @applitools/core-base bumped to 1.21.1
137
+ #### Bug Fixes
138
+
139
+ * add regions round up to the client set regions as well coded one ([#2413](https://github.com/Applitools-Dev/sdk/issues/2413)) ([85d4d2d](https://github.com/Applitools-Dev/sdk/commit/85d4d2ddd0166802c7ca9a5c11a1f52962284a5b))
140
+ * @applitools/ec-client bumped to 1.9.18
141
+
142
+ * @applitools/core bumped to 4.27.1
143
+ #### Bug Fixes
144
+
145
+ * add env variable for universal host name to use different conventions of localhost ([#2689](https://github.com/Applitools-Dev/sdk/issues/2689)) ([24d6713](https://github.com/Applitools-Dev/sdk/commit/24d671313dba0bba00e2f86875920e0431cf1234))
146
+ * add regions round up to the client set regions as well coded one ([#2413](https://github.com/Applitools-Dev/sdk/issues/2413)) ([85d4d2d](https://github.com/Applitools-Dev/sdk/commit/85d4d2ddd0166802c7ca9a5c11a1f52962284a5b))
147
+
148
+
149
+
150
+
3
151
  ## [1.29.3](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.29.2...js/eyes@1.29.3) (2024-12-18)
4
152
 
5
153
 
package/dist/Eyes.js CHANGED
@@ -46,7 +46,7 @@ class Eyes {
46
46
  return this.constructor._sdk;
47
47
  }
48
48
  static async getExecutionCloudUrl(config) {
49
- const { core } = (0, SDK_1.initSDK)(this._sdk);
49
+ const { core } = (0, SDK_1.initSDK)(this._sdk, config === null || config === void 0 ? void 0 : config.maskLog);
50
50
  const client = await core.getECClient({
51
51
  settings: {
52
52
  proxy: config === null || config === void 0 ? void 0 : config.proxy,
@@ -59,7 +59,7 @@ class Eyes {
59
59
  static async setViewportSize(driver, size) {
60
60
  var _a;
61
61
  const { core } = (0, SDK_1.initSDK)(this._sdk);
62
- await ((_a = core.setViewportSize) === null || _a === void 0 ? void 0 : _a.call(core, { target: driver, size }));
62
+ await ((_a = core.setViewportSize) === null || _a === void 0 ? void 0 : _a.call(core, { target: driver, size: { width: size.width, height: size.height } }));
63
63
  }
64
64
  static setMobileCapabilities(capabilities, config) {
65
65
  var _a, _b;
@@ -92,7 +92,8 @@ class Eyes {
92
92
  this._state = {};
93
93
  this._events = new Map();
94
94
  this._handlers = new SessionEventHandlers_1.SessionEventHandlers();
95
- const sdk = (0, SDK_1.initSDK)(this._sdk);
95
+ const maskLog = utils.types.instanceOf(runnerOrConfig, Runners_1.EyesRunner) ? runnerOrConfig._maskLog : false;
96
+ const sdk = (0, SDK_1.initSDK)(this._sdk, maskLog);
96
97
  this._spec = sdk.spec;
97
98
  this._core = sdk.core;
98
99
  if (utils.types.instanceOf(runnerOrConfig, Runners_1.EyesRunner)) {
@@ -205,7 +206,10 @@ class Eyes {
205
206
  config.open.testName = testNameOrViewportSize;
206
207
  if (utils.types.has(viewportSizeOrSessionType, ['width', 'height'])) {
207
208
  (_e = (_g = config.open).environment) !== null && _e !== void 0 ? _e : (_g.environment = {});
208
- config.open.environment.viewportSize = viewportSizeOrSessionType;
209
+ config.open.environment.viewportSize = {
210
+ width: viewportSizeOrSessionType.width,
211
+ height: viewportSizeOrSessionType.height,
212
+ };
209
213
  }
210
214
  if (utils.types.isEnumValue(sessionType, SessionType_1.SessionTypeEnum))
211
215
  config.open.sessionType = sessionType;
@@ -447,6 +451,7 @@ class Eyes {
447
451
  async setViewportSize(size) {
448
452
  var _a, _b;
449
453
  utils.guard.notNull(size, { name: 'size' });
454
+ size = { width: size.width, height: size.height }; // ensure no extra props, and convert getters to enumerable props
450
455
  if (!this._driver) {
451
456
  this._config.setViewportSize(size);
452
457
  }
package/dist/Runners.js CHANGED
@@ -33,10 +33,12 @@ const TestResultsSummary_1 = require("./output/TestResultsSummary");
33
33
  const utils = __importStar(require("@applitools/utils"));
34
34
  class EyesRunner {
35
35
  constructor(options) {
36
+ var _a;
36
37
  /** @internal */
37
38
  this._managerSettings = {};
38
39
  /** @internal */
39
40
  this._getResultsSettings = {};
41
+ this._maskLog = (_a = options === null || options === void 0 ? void 0 : options.maskLog) !== null && _a !== void 0 ? _a : false;
40
42
  if (options) {
41
43
  this._managerSettings = {
42
44
  concurrency: options.testConcurrency,
package/dist/SDK.js CHANGED
@@ -26,7 +26,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.initSDK = void 0;
27
27
  const core_1 = require("@applitools/core");
28
28
  const utils = __importStar(require("@applitools/utils"));
29
- function initSDK(options) {
29
+ function initSDK(options, maskLog) {
30
+ if (options)
31
+ options.maskLog = maskLog;
30
32
  return {
31
33
  core: getCoreWithCache(options),
32
34
  spec: options === null || options === void 0 ? void 0 : options.spec,
@@ -968,7 +968,7 @@ class ConfigurationData {
968
968
  this._config.viewportSize = viewportSize;
969
969
  }
970
970
  getViewportSize() {
971
- return this.viewportSize && new RectangleSize_1.RectangleSizeData(this.viewportSize);
971
+ return this.viewportSize && new RectangleSize_1.RectangleSizeData(this.viewportSize); // this is not a copy constructor, the RectangleSizeData saves the reference
972
972
  }
973
973
  setViewportSize(viewportSize) {
974
974
  this.viewportSize = viewportSize;
@@ -1050,7 +1050,10 @@ class ConfigurationData {
1050
1050
  os: this.hostOS,
1051
1051
  displayOs: this.hostOSInfo,
1052
1052
  deviceName: this.deviceInfo,
1053
- viewportSize: this.viewportSize,
1053
+ viewportSize: this.viewportSize && {
1054
+ width: this.viewportSize.width,
1055
+ height: this.viewportSize.height,
1056
+ },
1054
1057
  }),
1055
1058
  branchName: this.branchName,
1056
1059
  parentBranchName: this.parentBranchName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes",
3
- "version": "1.29.3",
3
+ "version": "1.30.0",
4
4
  "keywords": [
5
5
  "applitools",
6
6
  "eyes",
@@ -46,13 +46,13 @@
46
46
  "test": "run --top-level mocha './test/**/*.spec.ts'"
47
47
  },
48
48
  "dependencies": {
49
- "@applitools/core": "4.27.0",
50
- "@applitools/logger": "2.0.20",
51
- "@applitools/utils": "1.7.6",
49
+ "@applitools/core": "4.28.0",
50
+ "@applitools/logger": "2.1.0",
51
+ "@applitools/utils": "1.7.7",
52
52
  "chalk": "4.1.2"
53
53
  },
54
54
  "devDependencies": {
55
- "@applitools/req": "^1.7.5",
55
+ "@applitools/req": "^1.7.6",
56
56
  "@types/node": "^12.20.55"
57
57
  },
58
58
  "engines": {
package/types/Eyes.d.ts CHANGED
@@ -39,7 +39,9 @@ export declare class Eyes<TSpec extends Core.SpecType = Core.SpecType> {
39
39
  private _spec?;
40
40
  private _events;
41
41
  private _handlers;
42
- static getExecutionCloudUrl(config?: Configuration): Promise<string>;
42
+ static getExecutionCloudUrl(config?: Configuration & {
43
+ maskLog?: boolean;
44
+ }): Promise<string>;
43
45
  static setViewportSize(driver: unknown, size: RectangleSize): Promise<void>;
44
46
  static setMobileCapabilities<TCapabilities extends Record<string, any>>(capabilities: TCapabilities, config?: Configuration): TCapabilities;
45
47
  constructor(runner?: EyesRunner, config?: Configuration<TSpec>);
@@ -5,6 +5,7 @@ import { TestResultsSummaryData } from './output/TestResultsSummary';
5
5
  export declare abstract class EyesRunner {
6
6
  private _core?;
7
7
  private _manager?;
8
+ readonly _maskLog: boolean;
8
9
  abstract readonly type: 'classic' | 'ufg';
9
10
  /** @internal */
10
11
  protected readonly _managerSettings: Core.ManagerSettings;
package/types/SDK.d.ts CHANGED
@@ -3,9 +3,10 @@ export interface SDK<TSpec extends SpecType = SpecType> {
3
3
  spec?: SpecDriver<TSpec>;
4
4
  agentId?: string;
5
5
  environment?: Record<string, any>;
6
+ maskLog?: boolean;
6
7
  makeCore?: typeof makeDefaultCore;
7
8
  }
8
- export declare function initSDK<TSpec extends SpecType = SpecType>(options?: SDK<TSpec>): {
9
+ export declare function initSDK<TSpec extends SpecType = SpecType>(options?: SDK<TSpec>, maskLog?: boolean): {
9
10
  core: Core<TSpec, 'classic' | 'ufg'>;
10
11
  spec?: SpecDriver<TSpec>;
11
12
  };
@@ -4,6 +4,7 @@ export type RunnerOptions = {
4
4
  /** @internal */
5
5
  legacyConcurrency?: number;
6
6
  removeDuplicateTests?: boolean;
7
+ maskLog?: boolean;
7
8
  };
8
9
  /** @deprecated */
9
10
  export declare class RunnerOptionsFluent {