@applitools/eyes-playwright 1.36.5 → 1.37.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,108 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.37.1](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright@1.37.0...js/eyes-playwright@1.37.1) (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
+
15
+ ## [1.37.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright@1.36.5...js/eyes-playwright@1.37.0) (2025-03-30)
16
+
17
+
18
+ ### Features
19
+
20
+ * allow fully to be sent from the configuration object ([#2867](https://github.com/Applitools-Dev/sdk/issues/2867)) ([e8e7fbc](https://github.com/Applitools-Dev/sdk/commit/e8e7fbcb545e9bab899691d8d136b69f4a67e0d8))
21
+
22
+
23
+ ### Dependencies
24
+
25
+ * @applitools/utils bumped to 1.8.0
26
+ #### Features
27
+
28
+ * allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
29
+ * @applitools/dom-snapshot bumped to 4.11.17
30
+ #### Bug Fixes
31
+
32
+ * input range value render issue - add input range to need map list ([#2866](https://github.com/Applitools-Dev/sdk/issues/2866)) ([6b3c113](https://github.com/Applitools-Dev/sdk/commit/6b3c113ab3068fc89b3d3917a12fc51bad66ca97))
33
+
34
+
35
+
36
+ * @applitools/socket bumped to 1.2.3
37
+
38
+ * @applitools/driver bumped to 1.21.0
39
+ #### Features
40
+
41
+ * allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
42
+
43
+
44
+
45
+ * @applitools/spec-driver-playwright bumped to 1.5.9
46
+
47
+ * @applitools/screenshoter bumped to 3.11.0
48
+ #### Features
49
+
50
+ * allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
51
+
52
+
53
+
54
+ * @applitools/req bumped to 1.7.9
55
+
56
+ * @applitools/image bumped to 1.1.18
57
+
58
+ * @applitools/nml-client bumped to 1.8.27
59
+
60
+ * @applitools/ufg-client bumped to 1.16.8
61
+
62
+ * @applitools/core-base bumped to 1.22.3
63
+ #### Bug Fixes
64
+
65
+ * reject openCheckAndClose on request failures ([#2870](https://github.com/Applitools-Dev/sdk/issues/2870)) ([1d12d60](https://github.com/Applitools-Dev/sdk/commit/1d12d60991e8f222002273d5447702158f1cba84))
66
+
67
+
68
+
69
+ * @applitools/core bumped to 4.34.0
70
+ #### Features
71
+
72
+ * allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
73
+ * offline results state granularity ([#2872](https://github.com/Applitools-Dev/sdk/issues/2872)) ([c5f6e4e](https://github.com/Applitools-Dev/sdk/commit/c5f6e4ed87c4855704ce1a6c568393a35b677c1d))
74
+
75
+
76
+ #### Bug Fixes
77
+
78
+ * reject openCheckAndClose on request failures ([#2870](https://github.com/Applitools-Dev/sdk/issues/2870)) ([1d12d60](https://github.com/Applitools-Dev/sdk/commit/1d12d60991e8f222002273d5447702158f1cba84))
79
+
80
+
81
+
82
+ * @applitools/logger bumped to 2.1.2
83
+
84
+ * @applitools/dom-capture bumped to 11.5.5
85
+
86
+ * @applitools/spec-driver-webdriver bumped to 1.2.1
87
+
88
+ * @applitools/spec-driver-selenium bumped to 1.5.97
89
+
90
+ * @applitools/spec-driver-puppeteer bumped to 1.4.26
91
+
92
+ * @applitools/tunnel-client bumped to 1.6.4
93
+
94
+ * @applitools/ec-client bumped to 1.10.7
95
+
96
+ * @applitools/eyes bumped to 1.33.0
97
+ #### Features
98
+
99
+ * allow fully to be sent from the configuration object ([#2867](https://github.com/Applitools-Dev/sdk/issues/2867)) ([e8e7fbc](https://github.com/Applitools-Dev/sdk/commit/e8e7fbcb545e9bab899691d8d136b69f4a67e0d8))
100
+ * allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
101
+ * offline results state granularity ([#2872](https://github.com/Applitools-Dev/sdk/issues/2872)) ([c5f6e4e](https://github.com/Applitools-Dev/sdk/commit/c5f6e4ed87c4855704ce1a6c568393a35b677c1d))
102
+
103
+
104
+
105
+
3
106
  ## [1.36.5](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright@1.36.4...js/eyes-playwright@1.36.5) (2025-03-13)
4
107
 
5
108
 
@@ -6,7 +6,7 @@ const index_1 = require("./index");
6
6
  const getEyes_1 = require("./getEyes");
7
7
  exports.expect = test_1.expect.extend({
8
8
  async toHaveScreenshot(pageOrLocator, nameOrOptions = {}, optOptions = {}) {
9
- var _a, _b, _c, _d, _e;
9
+ var _a, _b, _c, _d, _e, _f;
10
10
  const testInfo = index_1.test.info();
11
11
  if (!testInfo) {
12
12
  throw new Error(`toHaveScreenshot() must be called during the test`);
@@ -127,7 +127,7 @@ exports.expect = test_1.expect.extend({
127
127
  ? nameOrOptions.name
128
128
  : undefined,
129
129
  region: locator !== null && locator !== void 0 ? locator : options.clip,
130
- fully: options.fullPage,
130
+ fully: (_f = options.fullPage) !== null && _f !== void 0 ? _f : configuration.fully,
131
131
  ignoreRegions: options.mask,
132
132
  });
133
133
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-playwright",
3
- "version": "1.36.5",
3
+ "version": "1.37.1",
4
4
  "description": "Applitools Eyes SDK for Playwright",
5
5
  "keywords": [
6
6
  "eyes-playwright",
@@ -59,9 +59,9 @@
59
59
  "up:framework": "echo \"$(jq '.devDependencies.playwright = $ENV.APPLITOOLS_FRAMEWORK_VERSION' ./package.json)\" > ./package.json"
60
60
  },
61
61
  "dependencies": {
62
- "@applitools/eyes": "1.32.7",
63
- "@applitools/spec-driver-playwright": "1.5.8",
64
- "@applitools/utils": "1.7.8",
62
+ "@applitools/eyes": "1.33.2",
63
+ "@applitools/spec-driver-playwright": "1.5.9",
64
+ "@applitools/utils": "1.8.0",
65
65
  "@inquirer/prompts": "7.0.1",
66
66
  "chalk": "4.1.2",
67
67
  "yargs": "17.7.2"
package/types/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export type SpecType = {
8
8
  element: Element;
9
9
  selector: Selector;
10
10
  secondary: never;
11
+ userFunction: unknown;
11
12
  };
12
13
  export class Eyes {
13
14
  static setViewportSize: (driver: Driver, viewportSize: RectangleSize) => Promise<void>;
@@ -273,7 +274,7 @@ export type CheckSettingsAutomationPlain = {
273
274
  useSystemScreenshot?: undefined | boolean;
274
275
  hooks?: undefined | { beforeCaptureScreenshot: string; };
275
276
  timeout?: undefined | number;
276
- waitBeforeCapture?: undefined | number;
277
+ waitBeforeCapture?: undefined | number | (() => Promise<void>);
277
278
  lazyLoad?: undefined | boolean | { scrollLength?: undefined | number; waitingTime?: undefined | number; maxAmountToScroll?: undefined | number; };
278
279
  };
279
280
  export class CheckSettingsAutomation {
@@ -309,6 +310,7 @@ export class CheckSettingsAutomation {
309
310
  useSystemScreenshot(useSystemScreenshot?: undefined | boolean): CheckSettingsAutomation;
310
311
  timeout(timeout: number): CheckSettingsAutomation;
311
312
  waitBeforeCapture(waitBeforeCapture: number): CheckSettingsAutomation;
313
+ waitBeforeCapture(waitBeforeCapture: (() => Promise<void>)): CheckSettingsAutomation;
312
314
  lazyLoad(options?: undefined | boolean): CheckSettingsAutomation;
313
315
  lazyLoad(options?: undefined | { scrollLength?: undefined | number; waitingTime?: undefined | number; maxAmountToScroll?: undefined | number; }): CheckSettingsAutomation;
314
316
  densityMetrics(options: { scaleRatio?: undefined | number; xdpi?: undefined | number; ydpi?: undefined | number; }): CheckSettingsAutomation;
@@ -483,6 +485,7 @@ export type ConfigurationPlain = {
483
485
  enablePatterns?: undefined | boolean;
484
486
  environmentName?: undefined | string;
485
487
  forceFullPageScreenshot?: undefined | boolean;
488
+ fully?: undefined | boolean;
486
489
  gitMergeBaseTimestamp?: undefined | string;
487
490
  latestCommitInfo?: undefined | { timestamp: string; sha: string; };
488
491
  hideCaret?: undefined | boolean;
@@ -519,7 +522,7 @@ export type ConfigurationPlain = {
519
522
  useDom?: undefined | boolean;
520
523
  viewportSize?: undefined | RectangleSizePlain;
521
524
  visualGridOptions?: undefined | Record<string, any>;
522
- waitBeforeCapture?: undefined | number;
525
+ waitBeforeCapture?: undefined | number | (() => Promise<void>);
523
526
  waitBeforeScreenshots?: undefined | number;
524
527
  };
525
528
  export class Configuration implements Required<ConfigurationPlain> {
@@ -809,14 +812,19 @@ export class Configuration implements Required<ConfigurationPlain> {
809
812
  getVisualGridOptions(): { [key: string]: any; };
810
813
  setVisualGridOptions(visualGridOptions: { [key: string]: any; }): Configuration;
811
814
  setVisualGridOption(key: string, value: any): Configuration;
812
- get waitBeforeCapture(): number;
813
- set waitBeforeCapture(waitBeforeCapture: number);
814
- getWaitBeforeCapture(): number;
815
+ get waitBeforeCapture(): number | (() => Promise<void>);
816
+ set waitBeforeCapture(waitBeforeCapture: number | (() => Promise<void>));
817
+ getWaitBeforeCapture(): number | (() => Promise<void>);
815
818
  setWaitBeforeCapture(waitBeforeCapture: number): Configuration;
819
+ setWaitBeforeCapture(waitBeforeCapture: (() => Promise<void>)): Configuration;
816
820
  get waitBeforeScreenshots(): number;
817
821
  set waitBeforeScreenshots(waitBeforeScreenshots: number);
818
822
  getWaitBeforeScreenshots(): number;
819
823
  setWaitBeforeScreenshots(waitBeforeScreenshots: number): Configuration;
824
+ get fully(): boolean;
825
+ set fully(fully: boolean);
826
+ getFully(): boolean;
827
+ setFully(fully: boolean): Configuration;
820
828
  }
821
829
  export class BatchClose {
822
830
  static close(settings: { batchIds: Array<string>; serverUrl: string; apiKey: string; proxy?: undefined | ProxySettingsPlain; }): Promise<void>;