@applitools/eyes-nightwatch 1.25.21 → 1.25.22

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,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.25.22](https://github.com/Applitools-Dev/sdk/compare/js/eyes-nightwatch@1.25.21...js/eyes-nightwatch@1.25.22) (2025-04-03)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/core bumped to 4.35.1
9
+ #### Bug Fixes
10
+
11
+ * dummy ([9b8ffef](https://github.com/Applitools-Dev/sdk/commit/9b8ffef6277015a9073caf50f5dc5741986fbf07))
12
+ * @applitools/eyes bumped to 1.33.2
13
+
14
+
3
15
  ## [1.25.21](https://github.com/Applitools-Dev/sdk/compare/js/eyes-nightwatch@1.25.20...js/eyes-nightwatch@1.25.21) (2025-03-06)
4
16
 
5
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-nightwatch",
3
- "version": "1.25.21",
3
+ "version": "1.25.22",
4
4
  "description": "Applitools Eyes SDK for Nightwatch.js",
5
5
  "keywords": [
6
6
  "eyes-nightwatch",
@@ -43,10 +43,10 @@
43
43
  "up:framework": "echo \"$(jq '.devDependencies.nightwatch = $ENV.APPLITOOLS_FRAMEWORK_VERSION' ./package.json)\" > ./package.json"
44
44
  },
45
45
  "dependencies": {
46
- "@applitools/driver": "1.20.5",
47
- "@applitools/eyes": "1.32.6",
48
- "@applitools/spec-driver-webdriver": "1.1.26",
49
- "@applitools/utils": "1.7.8",
46
+ "@applitools/driver": "1.21.0",
47
+ "@applitools/eyes": "1.33.2",
48
+ "@applitools/spec-driver-webdriver": "1.2.1",
49
+ "@applitools/utils": "1.8.0",
50
50
  "webdriver": "7.31.1"
51
51
  },
52
52
  "devDependencies": {
package/types/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export type SpecType = {
7
7
  element: Element;
8
8
  selector: Selector;
9
9
  secondary: never;
10
+ userFunction: unknown;
10
11
  };
11
12
  export class Eyes {
12
13
  static setViewportSize: (driver: Driver, viewportSize: RectangleSize) => Promise<void>;
@@ -272,7 +273,7 @@ export type CheckSettingsAutomationPlain = {
272
273
  useSystemScreenshot?: undefined | boolean;
273
274
  hooks?: undefined | { beforeCaptureScreenshot: string; };
274
275
  timeout?: undefined | number;
275
- waitBeforeCapture?: undefined | number;
276
+ waitBeforeCapture?: undefined | number | (() => Promise<void>);
276
277
  lazyLoad?: undefined | boolean | { scrollLength?: undefined | number; waitingTime?: undefined | number; maxAmountToScroll?: undefined | number; };
277
278
  };
278
279
  export class CheckSettingsAutomation {
@@ -308,6 +309,7 @@ export class CheckSettingsAutomation {
308
309
  useSystemScreenshot(useSystemScreenshot?: undefined | boolean): CheckSettingsAutomation;
309
310
  timeout(timeout: number): CheckSettingsAutomation;
310
311
  waitBeforeCapture(waitBeforeCapture: number): CheckSettingsAutomation;
312
+ waitBeforeCapture(waitBeforeCapture: (() => Promise<void>)): CheckSettingsAutomation;
311
313
  lazyLoad(options?: undefined | boolean): CheckSettingsAutomation;
312
314
  lazyLoad(options?: undefined | { scrollLength?: undefined | number; waitingTime?: undefined | number; maxAmountToScroll?: undefined | number; }): CheckSettingsAutomation;
313
315
  densityMetrics(options: { scaleRatio?: undefined | number; xdpi?: undefined | number; ydpi?: undefined | number; }): CheckSettingsAutomation;
@@ -482,6 +484,7 @@ export type ConfigurationPlain = {
482
484
  enablePatterns?: undefined | boolean;
483
485
  environmentName?: undefined | string;
484
486
  forceFullPageScreenshot?: undefined | boolean;
487
+ fully?: undefined | boolean;
485
488
  gitMergeBaseTimestamp?: undefined | string;
486
489
  latestCommitInfo?: undefined | { timestamp: string; sha: string; };
487
490
  hideCaret?: undefined | boolean;
@@ -518,7 +521,7 @@ export type ConfigurationPlain = {
518
521
  useDom?: undefined | boolean;
519
522
  viewportSize?: undefined | RectangleSizePlain;
520
523
  visualGridOptions?: undefined | Record<string, any>;
521
- waitBeforeCapture?: undefined | number;
524
+ waitBeforeCapture?: undefined | number | (() => Promise<void>);
522
525
  waitBeforeScreenshots?: undefined | number;
523
526
  };
524
527
  export class Configuration implements Required<ConfigurationPlain> {
@@ -808,14 +811,19 @@ export class Configuration implements Required<ConfigurationPlain> {
808
811
  getVisualGridOptions(): { [key: string]: any; };
809
812
  setVisualGridOptions(visualGridOptions: { [key: string]: any; }): Configuration;
810
813
  setVisualGridOption(key: string, value: any): Configuration;
811
- get waitBeforeCapture(): number;
812
- set waitBeforeCapture(waitBeforeCapture: number);
813
- getWaitBeforeCapture(): number;
814
+ get waitBeforeCapture(): number | (() => Promise<void>);
815
+ set waitBeforeCapture(waitBeforeCapture: number | (() => Promise<void>));
816
+ getWaitBeforeCapture(): number | (() => Promise<void>);
814
817
  setWaitBeforeCapture(waitBeforeCapture: number): Configuration;
818
+ setWaitBeforeCapture(waitBeforeCapture: (() => Promise<void>)): Configuration;
815
819
  get waitBeforeScreenshots(): number;
816
820
  set waitBeforeScreenshots(waitBeforeScreenshots: number);
817
821
  getWaitBeforeScreenshots(): number;
818
822
  setWaitBeforeScreenshots(waitBeforeScreenshots: number): Configuration;
823
+ get fully(): boolean;
824
+ set fully(fully: boolean);
825
+ getFully(): boolean;
826
+ setFully(fully: boolean): Configuration;
819
827
  }
820
828
  export class BatchClose {
821
829
  static close(settings: { batchIds: Array<string>; serverUrl: string; apiKey: string; proxy?: undefined | ProxySettingsPlain; }): Promise<void>;