@applitools/eyes 1.4.1 → 1.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
@@ -1,5 +1,110 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.5.1](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes@1.5.0...js/eyes@1.5.1) (2023-07-05)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * fixed issue with getResults log appearing in console when file handler configured ([56b75c2](https://github.com/applitools/eyes.sdk.javascript1/commit/56b75c2185906c1581980985816a000c14000ac3))
9
+
10
+
11
+ ### Reverts
12
+
13
+ * revert removal of `nmgOptions` api ([b8d03c7](https://github.com/applitools/eyes.sdk.javascript1/commit/b8d03c77e8243397ecca233e46d56f7437d16df4))
14
+
15
+
16
+ ### Dependencies
17
+
18
+ * @applitools/core bumped from 3.4.0 to 3.5.0
19
+ #### Features
20
+
21
+ * added auto applitools lib detection ([#1707](https://github.com/applitools/eyes.sdk.javascript1/issues/1707)) ([7d439b5](https://github.com/applitools/eyes.sdk.javascript1/commit/7d439b52af55f3b0596c9d35d6ba85c717448023))
22
+ * support dns caching ([#1680](https://github.com/applitools/eyes.sdk.javascript1/issues/1680)) ([9bbff34](https://github.com/applitools/eyes.sdk.javascript1/commit/9bbff34f50c9d18758b55a6bcb45571ca1148180))
23
+
24
+
25
+ #### Bug Fixes
26
+
27
+ * some fix ([660a137](https://github.com/applitools/eyes.sdk.javascript1/commit/660a1376a49dd28f8f399690502cd3d1f77665fa))
28
+
29
+
30
+
31
+ * @applitools/core-base bumped from 1.2.1 to 1.3.0
32
+ #### Features
33
+
34
+ * support dns caching ([#1680](https://github.com/applitools/eyes.sdk.javascript1/issues/1680)) ([9bbff34](https://github.com/applitools/eyes.sdk.javascript1/commit/9bbff34f50c9d18758b55a6bcb45571ca1148180))
35
+
36
+
37
+
38
+ * @applitools/req bumped from 1.3.3 to 1.4.0
39
+ #### Features
40
+
41
+ * support dns caching ([#1680](https://github.com/applitools/eyes.sdk.javascript1/issues/1680)) ([9bbff34](https://github.com/applitools/eyes.sdk.javascript1/commit/9bbff34f50c9d18758b55a6bcb45571ca1148180))
42
+ * @applitools/driver bumped from 1.12.4 to 1.13.0
43
+ #### Features
44
+
45
+ * added auto applitools lib detection ([#1707](https://github.com/applitools/eyes.sdk.javascript1/issues/1707)) ([7d439b5](https://github.com/applitools/eyes.sdk.javascript1/commit/7d439b52af55f3b0596c9d35d6ba85c717448023))
46
+ * @applitools/ec-client bumped from 1.5.0 to 1.6.0
47
+ #### Features
48
+
49
+ * added support of regional execution cloud servers ([#1711](https://github.com/applitools/eyes.sdk.javascript1/issues/1711)) ([2e26c69](https://github.com/applitools/eyes.sdk.javascript1/commit/2e26c6944bb15f6121fb37c1dba95aba162c1f6a))
50
+ * support dns caching ([#1680](https://github.com/applitools/eyes.sdk.javascript1/issues/1680)) ([9bbff34](https://github.com/applitools/eyes.sdk.javascript1/commit/9bbff34f50c9d18758b55a6bcb45571ca1148180))
51
+
52
+
53
+ #### Bug Fixes
54
+
55
+ * fixed auto tunnel cleanup after unexpected end of the process ([3c1ad08](https://github.com/applitools/eyes.sdk.javascript1/commit/3c1ad0837d2d3560becc6d89370aa878becb3270))
56
+
57
+
58
+
59
+ * @applitools/tunnel-client bumped from 0.1.1 to 1.0.0
60
+ #### Features
61
+
62
+ * added binaries and made them available in jfrog ([92033fe](https://github.com/applitools/eyes.sdk.javascript1/commit/92033fed7edc58bbc4a4e37269068418fe3afc3d))
63
+ * release as 1.0.0 ([93bf312](https://github.com/applitools/eyes.sdk.javascript1/commit/93bf31205b07d19bc2cb4f50b974c7bad0f49cea))
64
+
65
+
66
+
67
+ * @applitools/ufg-client bumped from 1.2.22 to 1.3.0
68
+ #### Features
69
+
70
+ * support dns caching ([#1680](https://github.com/applitools/eyes.sdk.javascript1/issues/1680)) ([9bbff34](https://github.com/applitools/eyes.sdk.javascript1/commit/9bbff34f50c9d18758b55a6bcb45571ca1148180))
71
+
72
+
73
+
74
+ * @applitools/spec-driver-webdriver bumped from 1.0.36 to 1.0.37
75
+
76
+ * @applitools/nml-client bumped from 1.5.0 to 1.5.1
77
+
78
+ * @applitools/screenshoter bumped from 3.8.1 to 3.8.2
79
+
80
+
81
+ ## [1.5.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes@1.4.1...js/eyes@1.5.0) (2023-06-29)
82
+
83
+
84
+ ### Features
85
+
86
+ * added a new mode for taking native app screenshots ([#1682](https://github.com/applitools/eyes.sdk.javascript1/issues/1682)) ([0ab7d96](https://github.com/applitools/eyes.sdk.javascript1/commit/0ab7d96164c89ec65b87654fb271d4404bbf70e5))
87
+
88
+
89
+ ### Dependencies
90
+
91
+ * @applitools/core bumped from 3.3.1 to 3.4.0
92
+ #### Features
93
+
94
+ * added a new mode for taking native app screenshots ([#1682](https://github.com/applitools/eyes.sdk.javascript1/issues/1682)) ([0ab7d96](https://github.com/applitools/eyes.sdk.javascript1/commit/0ab7d96164c89ec65b87654fb271d4404bbf70e5))
95
+
96
+
97
+ #### Bug Fixes
98
+
99
+ * apply default scrolling mode ([f35aba4](https://github.com/applitools/eyes.sdk.javascript1/commit/f35aba454a344c8f0cf787afa2120ce57d91e307))
100
+
101
+
102
+
103
+ * @applitools/nml-client bumped from 1.4.0 to 1.5.0
104
+ #### Features
105
+
106
+ * added a new mode for taking native app screenshots ([#1682](https://github.com/applitools/eyes.sdk.javascript1/issues/1682)) ([0ab7d96](https://github.com/applitools/eyes.sdk.javascript1/commit/0ab7d96164c89ec65b87654fb271d4404bbf70e5))
107
+
3
108
  ## [1.4.1](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes@1.4.0...js/eyes@1.4.1) (2023-06-28)
4
109
 
5
110
 
package/dist/Eyes.js CHANGED
@@ -61,6 +61,31 @@ class Eyes {
61
61
  const { core } = (0, SDK_1.initSDK)(this._sdk);
62
62
  await ((_a = core.setViewportSize) === null || _a === void 0 ? void 0 : _a.call(core, { target: driver, size }));
63
63
  }
64
+ static setMobileCapabilities(capabilities, config) {
65
+ var _a, _b;
66
+ const envs = {
67
+ NML_SERVER_URL: (_a = config === null || config === void 0 ? void 0 : config.serverUrl) !== null && _a !== void 0 ? _a : utils.general.getEnvValue('SERVER_URL'),
68
+ NML_API_KEY: (_b = config === null || config === void 0 ? void 0 : config.apiKey) !== null && _b !== void 0 ? _b : utils.general.getEnvValue('API_KEY'),
69
+ };
70
+ if (config === null || config === void 0 ? void 0 : config.proxy) {
71
+ const url = new URL(config.proxy.url);
72
+ if (config.proxy.username)
73
+ url.username = config.proxy.username;
74
+ if (config.proxy.password)
75
+ url.password = config.proxy.password;
76
+ envs.NML_PROXY_URL = url.toString();
77
+ }
78
+ return Object.assign(capabilities, {
79
+ 'appium:optionalIntentArguments': `--es APPLITOOLS '${JSON.stringify(envs)}'`,
80
+ 'appium:processArguments': JSON.stringify({
81
+ args: [],
82
+ env: {
83
+ DYLD_INSERT_LIBRARIES: '@executable_path/Frameworks/UFG_lib.xcframework/ios-arm64/UFG_lib.framework/UFG_lib:@executable_path/Frameworks/UFG_lib.xcframework/ios-arm64_x86_64-simulator/UFG_lib.framework/UFG_lib',
84
+ ...envs,
85
+ },
86
+ }),
87
+ });
88
+ }
64
89
  constructor(runnerOrConfig, config) {
65
90
  this._state = {};
66
91
  this._events = new Map();
@@ -76,7 +101,7 @@ class Eyes {
76
101
  this._runner = new Runners_1.ClassicRunner();
77
102
  this._config = new Configuration_1.ConfigurationData(runnerOrConfig !== null && runnerOrConfig !== void 0 ? runnerOrConfig : config, this._spec);
78
103
  }
79
- this._runner.attach(this, this._core);
104
+ this._runner.attach(this._core);
80
105
  this._handlers.attach(this);
81
106
  this._logger = new Logger_1.Logger({ label: 'Eyes API' });
82
107
  }
@@ -138,6 +163,9 @@ class Eyes {
138
163
  async getExecutionCloudUrl() {
139
164
  return this.constructor.getExecutionCloudUrl(this._config);
140
165
  }
166
+ setMobileCapabilities(capabilities) {
167
+ return this.constructor.setMobileCapabilities(capabilities, this._config);
168
+ }
141
169
  async open(driverOrConfigOrAppName, configOrAppNameOrTestName, testNameOrViewportSize, viewportSizeOrSessionType, sessionType) {
142
170
  var _a, _b, _c, _d;
143
171
  var _e;
@@ -229,10 +257,7 @@ class Eyes {
229
257
  const config = this._config.toJSON();
230
258
  // TODO remove when major version of sdk should be released
231
259
  (_a = (_c = config.screenshot).fully) !== null && _a !== void 0 ? _a : (_c.fully = false);
232
- let type;
233
- if (((_b = settings === null || settings === void 0 ? void 0 : settings.nmgOptions) === null || _b === void 0 ? void 0 : _b.nonNMGCheck) === 'addToAllDevices') {
234
- type = this._runner.type === 'ufg' ? 'classic' : 'ufg';
235
- }
260
+ const type = this._runner.type === 'ufg' && ((_b = settings === null || settings === void 0 ? void 0 : settings.nmgOptions) === null || _b === void 0 ? void 0 : _b.nonNMGCheck) === 'addToAllDevices' ? 'classic' : undefined;
236
261
  const [result] = await this._eyes.check({ type, target, settings, config });
237
262
  return new MatchResult_1.MatchResultData(result);
238
263
  }
@@ -348,24 +373,15 @@ class Eyes {
348
373
  return null;
349
374
  if (!this.isOpen)
350
375
  throw new EyesError_1.EyesError('Eyes not open');
351
- const deleteTest = (options) => this._core.deleteTest({
352
- ...options,
353
- settings: {
354
- ...options.settings,
355
- serverUrl: this._config.serverUrl,
356
- apiKey: this._config.apiKey,
357
- proxy: this._config.proxy,
358
- },
359
- });
360
376
  try {
361
377
  const config = this._config.toJSON();
362
378
  await this._eyes.close({ config });
363
379
  const [result] = await this._eyes.getResults({ settings: { throwErr } });
364
- return new TestResults_1.TestResultsData({ result, deleteTest });
380
+ return new TestResults_1.TestResultsData({ result, core: this._core });
365
381
  }
366
382
  catch (err) {
367
383
  if ((_a = err.info) === null || _a === void 0 ? void 0 : _a.result) {
368
- const result = new TestResults_1.TestResultsData({ result: err.info.result, deleteTest });
384
+ const result = new TestResults_1.TestResultsData({ result: err.info.result, core: this._core });
369
385
  if (err.reason === 'test failed') {
370
386
  throw new TestFailedError_1.TestFailedError(err.message, result);
371
387
  }
@@ -395,18 +411,7 @@ class Eyes {
395
411
  try {
396
412
  await this._eyes.abort();
397
413
  const [result] = await this._eyes.getResults();
398
- return new TestResults_1.TestResultsData({
399
- result,
400
- deleteTest: options => this._core.deleteTest({
401
- ...options,
402
- settings: {
403
- ...options.settings,
404
- serverUrl: this._config.serverUrl,
405
- apiKey: this._config.apiKey,
406
- proxy: this._config.proxy,
407
- },
408
- }),
409
- });
414
+ return new TestResults_1.TestResultsData({ result, core: this._core });
410
415
  }
411
416
  finally {
412
417
  this._eyes = undefined;
package/dist/Runners.js CHANGED
@@ -33,7 +33,6 @@ const TestResultsSummary_1 = require("./output/TestResultsSummary");
33
33
  const utils = __importStar(require("@applitools/utils"));
34
34
  class EyesRunner {
35
35
  constructor(options) {
36
- this._eyes = [];
37
36
  /** @internal */
38
37
  this._managerSettings = {};
39
38
  /** @internal */
@@ -48,38 +47,31 @@ class EyesRunner {
48
47
  }
49
48
  }
50
49
  /** @internal */
51
- attach(eyes, core) {
50
+ attach(core) {
52
51
  var _a;
53
52
  (_a = this._core) !== null && _a !== void 0 ? _a : (this._core = core);
54
- this._eyes.push(eyes);
55
53
  }
56
54
  /** @internal */
57
55
  async openEyes(options) {
58
56
  var _a;
59
- (_a = this._manager) !== null && _a !== void 0 ? _a : (this._manager = await this._core.makeManager({ type: this.type, settings: this._managerSettings }));
57
+ (_a = this._manager) !== null && _a !== void 0 ? _a : (this._manager = await this._core.makeManager({
58
+ type: this.type,
59
+ settings: this._managerSettings,
60
+ logger: options.logger,
61
+ }));
60
62
  return await this._manager.openEyes(options);
61
63
  }
62
64
  async getAllTestResults(throwErr = true) {
63
65
  var _a;
64
66
  if (!this._manager)
65
67
  return new TestResultsSummary_1.TestResultsSummaryData();
66
- const [eyes] = this._eyes;
67
- const deleteTest = (options) => this._core.deleteTest({
68
- ...options,
69
- settings: {
70
- ...options.settings,
71
- serverUrl: eyes.configuration.serverUrl,
72
- apiKey: eyes.configuration.apiKey,
73
- proxy: eyes.configuration.proxy,
74
- },
75
- });
76
68
  try {
77
69
  const summary = await this._manager.getResults({ settings: { throwErr, ...this._getResultsSettings } });
78
- return new TestResultsSummary_1.TestResultsSummaryData({ summary, deleteTest });
70
+ return new TestResultsSummary_1.TestResultsSummaryData({ summary, core: this._core });
79
71
  }
80
72
  catch (err) {
81
73
  if ((_a = err.info) === null || _a === void 0 ? void 0 : _a.result) {
82
- const result = new TestResults_1.TestResultsData({ result: err.info.result, deleteTest });
74
+ const result = new TestResults_1.TestResultsData({ result: err.info.result, core: this._core });
83
75
  if (err.reason === 'test failed') {
84
76
  throw new TestFailedError_1.TestFailedError(err.message, result);
85
77
  }
@@ -35,6 +35,7 @@ class TestFailedError extends EyesError_1.EyesError {
35
35
  }
36
36
  super(message);
37
37
  this._result = results;
38
+ Object.defineProperty(this, '_result', { value: this._result, enumerable: false });
38
39
  }
39
40
  get testResults() {
40
41
  return this._result;
@@ -422,23 +422,25 @@ class CheckSettingsAutomationFluent extends CheckSettingsBaseFluent {
422
422
  return this;
423
423
  }
424
424
  /** @deprecated */
425
- visualGridOption(key, value) {
426
- return this.ufgOption(key, value);
427
- }
428
- /** @deprecated */
429
- visualGridOptions(options) {
430
- return this.ufgOptions(options);
431
- }
432
425
  nmgOption(key, value) {
433
426
  this._settings.nmgOptions = { ...this._settings.nmgOptions, [key]: value };
434
427
  return this;
435
428
  }
429
+ /** @deprecated */
436
430
  nmgOptions(options) {
437
431
  this._settings.nmgOptions = options;
438
432
  return this;
439
433
  }
440
- renderId(renderId) {
441
- this._settings.renderId = renderId;
434
+ /** @deprecated */
435
+ visualGridOption(key, value) {
436
+ return this.ufgOption(key, value);
437
+ }
438
+ /** @deprecated */
439
+ visualGridOptions(options) {
440
+ return this.ufgOptions(options);
441
+ }
442
+ useSystemScreenshot(useSystemScreenshot) {
443
+ this._settings.useSystemScreenshot = useSystemScreenshot;
442
444
  return this;
443
445
  }
444
446
  timeout(timeout) {
@@ -499,6 +501,7 @@ class CheckSettingsAutomationFluent extends CheckSettingsBaseFluent {
499
501
  : undefined,
500
502
  ufgOptions: this._settings.visualGridOptions,
501
503
  nmgOptions: this._settings.nmgOptions,
504
+ screenshotMode: this._settings.useSystemScreenshot ? 'default' : undefined,
502
505
  hooks: this._settings.hooks,
503
506
  pageId: this._settings.pageId,
504
507
  lazyLoad: this._settings.lazyLoad,
@@ -6,13 +6,13 @@ class TestResultContainerData {
6
6
  /** @internal */
7
7
  constructor(options) {
8
8
  this._container = options.container;
9
- this._deleteTest = options.deleteTest;
9
+ this._core = options.core;
10
10
  }
11
11
  get testResults() {
12
12
  return this._container.result;
13
13
  }
14
14
  getTestResults() {
15
- return this.testResults && new TestResults_1.TestResultsData({ result: this.testResults, deleteTest: this._deleteTest });
15
+ return this.testResults && new TestResults_1.TestResultsData({ result: this.testResults, core: this._core });
16
16
  }
17
17
  get exception() {
18
18
  return this._container.error;
@@ -33,8 +33,8 @@ class TestResultsData {
33
33
  /** @internal */
34
34
  constructor(options) {
35
35
  var _a;
36
- this._deleteTest = options.deleteTest;
37
36
  this._result = (_a = options.result) !== null && _a !== void 0 ? _a : {};
37
+ this._core = options.core;
38
38
  }
39
39
  get id() {
40
40
  return this._result.id;
@@ -347,8 +347,15 @@ class TestResultsData {
347
347
  }
348
348
  async delete() {
349
349
  var _a;
350
- return (_a = this._deleteTest) === null || _a === void 0 ? void 0 : _a.call(this, {
351
- settings: { serverUrl: '', apiKey: '', testId: this.id, batchId: this.batchId, secretToken: this.secretToken },
350
+ return (_a = this._core) === null || _a === void 0 ? void 0 : _a.deleteTest({
351
+ settings: {
352
+ serverUrl: this._result.server.serverUrl,
353
+ apiKey: this._result.server.apiKey,
354
+ proxy: this._result.server.proxy,
355
+ testId: this._result.id,
356
+ batchId: this._result.batchId,
357
+ secretToken: this._result.secretToken,
358
+ },
352
359
  });
353
360
  }
354
361
  /** @deprecated */
@@ -6,18 +6,18 @@ class TestResultsSummaryData {
6
6
  /** @internal */
7
7
  constructor(options) {
8
8
  this._summary = options === null || options === void 0 ? void 0 : options.summary;
9
- this._deleteTest = options === null || options === void 0 ? void 0 : options.deleteTest;
9
+ this._core = options === null || options === void 0 ? void 0 : options.core;
10
10
  }
11
11
  getAllResults() {
12
12
  var _a, _b;
13
13
  return ((_b = (_a = this._summary) === null || _a === void 0 ? void 0 : _a.results.map(container => {
14
- return new TestResultContainer_1.TestResultContainerData({ container, deleteTest: this._deleteTest });
14
+ return new TestResultContainer_1.TestResultContainerData({ container, core: this._core });
15
15
  })) !== null && _b !== void 0 ? _b : []);
16
16
  }
17
17
  [Symbol.iterator]() {
18
18
  var _a, _b;
19
19
  return ((_b = (_a = this._summary) === null || _a === void 0 ? void 0 : _a.results.map(container => {
20
- return new TestResultContainer_1.TestResultContainerData({ container, deleteTest: this._deleteTest });
20
+ return new TestResultContainer_1.TestResultContainerData({ container, core: this._core });
21
21
  })[Symbol.iterator]()) !== null && _b !== void 0 ? _b : [][Symbol.iterator]());
22
22
  }
23
23
  /** @internal */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes",
3
- "version": "1.4.1",
3
+ "version": "1.5.1",
4
4
  "keywords": [
5
5
  "applitools",
6
6
  "eyes",
@@ -45,12 +45,12 @@
45
45
  "test": "run --top-level mocha './test/**/*.spec.ts'"
46
46
  },
47
47
  "dependencies": {
48
- "@applitools/core": "3.3.1",
48
+ "@applitools/core": "3.5.0",
49
49
  "@applitools/logger": "2.0.5",
50
50
  "@applitools/utils": "1.5.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@applitools/req": "^1.3.3",
53
+ "@applitools/req": "^1.4.0",
54
54
  "@types/node": "^12.20.55"
55
55
  },
56
56
  "engines": {
package/types/Eyes.d.ts CHANGED
@@ -41,6 +41,7 @@ export declare class Eyes<TSpec extends Core.SpecType = Core.SpecType> {
41
41
  private _handlers;
42
42
  static getExecutionCloudUrl(config?: Configuration): Promise<string>;
43
43
  static setViewportSize(driver: unknown, size: RectangleSize): Promise<void>;
44
+ static setMobileCapabilities<TCapabilities extends Record<string, any>>(capabilities: TCapabilities, config?: Configuration): TCapabilities;
44
45
  constructor(runner?: EyesRunner, config?: Configuration<TSpec>);
45
46
  constructor(config?: Configuration<TSpec>);
46
47
  get logger(): Logger;
@@ -92,6 +93,7 @@ export declare class Eyes<TSpec extends Core.SpecType = Core.SpecType> {
92
93
  /** @undocumented */
93
94
  off(handler: (...args: any[]) => any): void;
94
95
  getExecutionCloudUrl(): Promise<string>;
96
+ setMobileCapabilities<TCapabilities extends Record<string, any>>(capabilities: TCapabilities): TCapabilities;
95
97
  open(driver: TSpec['driver'], config?: Configuration<TSpec>): Promise<TSpec['driver']>;
96
98
  open(driver: TSpec['driver'], appName?: string, testName?: string, viewportSize?: RectangleSize, sessionType?: SessionType): Promise<TSpec['driver']>;
97
99
  open(config?: Configuration<TSpec>): Promise<void>;
@@ -2,11 +2,9 @@ import type * as Core from '@applitools/core';
2
2
  import { type Logger } from '@applitools/logger';
3
3
  import { RunnerOptions, RunnerOptionsFluent } from './input/RunnerOptions';
4
4
  import { TestResultsSummaryData } from './output/TestResultsSummary';
5
- import { Eyes } from './Eyes';
6
5
  export declare abstract class EyesRunner {
7
6
  private _core?;
8
7
  private _manager?;
9
- private _eyes;
10
8
  abstract readonly type: 'classic' | 'ufg';
11
9
  /** @internal */
12
10
  protected readonly _managerSettings: Core.ManagerSettings;
@@ -14,7 +12,7 @@ export declare abstract class EyesRunner {
14
12
  protected readonly _getResultsSettings: Core.GetManagerResultsSettings<'classic' | 'ufg'>;
15
13
  constructor(options?: RunnerOptions);
16
14
  /** @internal */
17
- attach<TSpec extends Core.SpecType = Core.SpecType>(eyes: Eyes<TSpec>, core: Core.Core<TSpec, 'classic' | 'ufg'>): void;
15
+ attach<TSpec extends Core.SpecType = Core.SpecType>(core: Core.Core<TSpec, 'classic' | 'ufg'>): void;
18
16
  /** @internal */
19
17
  openEyes<TSpec extends Core.SpecType = Core.SpecType>(options: {
20
18
  target: TSpec['driver'];
@@ -78,13 +78,14 @@ export type CheckSettingsAutomation<TSpec extends Core.SpecType> = CheckSettings
78
78
  visualGridOptions?: {
79
79
  [key: string]: any;
80
80
  };
81
+ /** @deprecated */
81
82
  nmgOptions?: {
82
83
  [key: string]: any;
83
84
  };
85
+ useSystemScreenshot?: boolean;
84
86
  hooks?: {
85
87
  beforeCaptureScreenshot: string;
86
88
  };
87
- renderId?: string;
88
89
  timeout?: number;
89
90
  waitBeforeCapture?: number;
90
91
  lazyLoad?: boolean | LazyLoadOptions;
@@ -192,16 +193,18 @@ export declare class CheckSettingsAutomationFluent<TSpec extends Core.SpecType =
192
193
  [key: string]: any;
193
194
  }): this;
194
195
  /** @deprecated */
195
- visualGridOption(key: string, value: any): this;
196
+ nmgOption(key: string, value: any): this;
196
197
  /** @deprecated */
197
- visualGridOptions(options: {
198
+ nmgOptions(options: {
198
199
  [key: string]: any;
199
200
  }): this;
200
- nmgOption(key: string, value: any): this;
201
- nmgOptions(options: {
201
+ /** @deprecated */
202
+ visualGridOption(key: string, value: any): this;
203
+ /** @deprecated */
204
+ visualGridOptions(options: {
202
205
  [key: string]: any;
203
206
  }): this;
204
- renderId(renderId: string): this;
207
+ useSystemScreenshot(useSystemScreenshot: boolean): this;
205
208
  timeout(timeout: number): this;
206
209
  waitBeforeCapture(waitBeforeCapture: number): this;
207
210
  lazyLoad(options?: LazyLoadOptions | boolean): this;
@@ -9,11 +9,11 @@ export type TestResultContainer = {
9
9
  };
10
10
  export declare class TestResultContainerData implements Required<TestResultContainer> {
11
11
  private _container;
12
- private _deleteTest?;
12
+ private _core?;
13
13
  /** @internal */
14
14
  constructor(options: {
15
15
  container: Core.TestResultContainer<'classic' | 'ufg'>;
16
- deleteTest?: Core.Core<Core.SpecType, 'classic' | 'ufg'>['deleteTest'];
16
+ core?: Core.Core<Core.SpecType, 'classic' | 'ufg'>;
17
17
  });
18
18
  get testResults(): TestResults;
19
19
  getTestResults(): TestResultsData;
@@ -44,12 +44,12 @@ export type TestResults = {
44
44
  readonly keepIfDuplicate?: boolean;
45
45
  };
46
46
  export declare class TestResultsData implements Required<TestResults> {
47
+ private _core?;
47
48
  private _result;
48
- private _deleteTest?;
49
49
  /** @internal */
50
50
  constructor(options: {
51
51
  result?: Partial<Core.TestResult<'classic' | 'ufg'>>;
52
- deleteTest?: Core.Core<Core.SpecType, 'classic' | 'ufg'>['deleteTest'];
52
+ core?: Core.Core<Core.SpecType, 'classic' | 'ufg'>;
53
53
  });
54
54
  get id(): string;
55
55
  getId(): string;
@@ -3,11 +3,11 @@ import { TestResultContainer, TestResultContainerData } from './TestResultContai
3
3
  export type TestResultsSummary = Iterable<TestResultContainer>;
4
4
  export declare class TestResultsSummaryData implements Iterable<TestResultContainerData> {
5
5
  private _summary?;
6
- private _deleteTest?;
6
+ private _core?;
7
7
  /** @internal */
8
8
  constructor(options?: {
9
9
  summary?: Core.TestResultSummary<'classic' | 'ufg'>;
10
- deleteTest?: Core.Core<Core.SpecType, 'classic' | 'ufg'>['deleteTest'];
10
+ core?: Core.Core<Core.SpecType, 'classic' | 'ufg'>;
11
11
  });
12
12
  getAllResults(): TestResultContainerData[];
13
13
  [Symbol.iterator](): Iterator<TestResultContainerData>;