@applitools/eyes-puppeteer 1.29.1 → 1.29.3

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,120 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.29.3](https://github.com/Applitools-Dev/sdk/compare/js/eyes-puppeteer@1.29.2...js/eyes-puppeteer@1.29.3) (2025-04-17)
4
+
5
+
6
+ ### Performance Improvements
7
+
8
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
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
+ * @applitools/core bumped to 4.37.0
87
+ #### Features
88
+
89
+ * height layout breakpoints ([#2801](https://github.com/Applitools-Dev/sdk/issues/2801)) ([819e241](https://github.com/Applitools-Dev/sdk/commit/819e2418f1fd93220a07dfbcf1157ffcf4995dd7))
90
+
91
+
92
+
93
+ * @applitools/eyes bumped to 1.34.0
94
+ #### Features
95
+
96
+ * height layout breakpoints ([#2801](https://github.com/Applitools-Dev/sdk/issues/2801)) ([819e241](https://github.com/Applitools-Dev/sdk/commit/819e2418f1fd93220a07dfbcf1157ffcf4995dd7))
97
+
98
+
99
+ #### Bug Fixes
100
+
101
+ * add checks for undefined regions in CheckSettings | AD-9042 ([#2868](https://github.com/Applitools-Dev/sdk/issues/2868)) ([0f7c991](https://github.com/Applitools-Dev/sdk/commit/0f7c9913d64e0535ba5ffe632923a3bf440be65f))
102
+
103
+
104
+
105
+
106
+ ## [1.29.2](https://github.com/Applitools-Dev/sdk/compare/js/eyes-puppeteer@1.29.1...js/eyes-puppeteer@1.29.2) (2025-04-03)
107
+
108
+
109
+ ### Dependencies
110
+
111
+ * @applitools/core bumped to 4.35.1
112
+ #### Bug Fixes
113
+
114
+ * dummy ([9b8ffef](https://github.com/Applitools-Dev/sdk/commit/9b8ffef6277015a9073caf50f5dc5741986fbf07))
115
+ * @applitools/eyes bumped to 1.33.2
116
+
117
+
3
118
  ## [1.29.1](https://github.com/Applitools-Dev/sdk/compare/js/eyes-puppeteer@1.29.0...js/eyes-puppeteer@1.29.1) (2025-03-06)
4
119
 
5
120
 
package/README.md CHANGED
@@ -1,12 +1,73 @@
1
- <div align="center">
1
+ ## Applitools Eyes SDK for [Puppeteer](https://pptr.dev/).
2
2
 
3
- ![Applitools Eyes](https://i.ibb.co/3hWJK68/applitools-eyes-logo.png)
4
- ### Applitools Eyes SDK for [Puppeteer](https://developers.google.com/web/tools/puppeteer)
5
- [![npm](https://img.shields.io/npm/v/@applitools/eyes-puppeteer.svg?style=for-the-badge)](https://www.npmjs.com/package/@applitools/eyes-puppeteer)
3
+ ## Installation
6
4
 
7
- </div>
8
- <br/>
5
+ Install eyes-puppeteer as a local dev dependency in your tested project:
9
6
 
10
- ## Resources
11
- - [Quick start](https://applitools.com/tutorials/quickstart/web/puppeteer)
12
- - [API reference](https://applitools.com/docs/api-ref/sdk-api/puppeteer/javascript/)
7
+ ```bash
8
+ npm i -D @applitools/eyes-puppeteer
9
+ ```
10
+
11
+ ## Getting started
12
+
13
+ To get started with this SDK, you need to set the following:
14
+
15
+ * [Applitools API key](#API)
16
+ * [Eyes server URL](#URL) - Required only if the Eyes server is not deployed on the Eyes public server.
17
+
18
+
19
+ ### Entering the Applitools API key {#API}
20
+
21
+ To authenticate via the Applitools server and run tests, you need to set the environment variable `APPLITOOLS_API_KEY` to the API key provided from Applitools Eyes. For details how to retrieve your API key, see [the Applitools documentation](/getting-started/retrieve-api-key) in the Eyes Knowledge Center.
22
+
23
+ #### Entering the API Key on Linux or a Mac
24
+
25
+ ```bash
26
+ export APPLITOOLS_API_KEY=<your_key>
27
+ npm test
28
+ ```
29
+
30
+ #### Entering the API Key on Windows
31
+
32
+ ```bash
33
+ set APPLITOOLS_API_KEY=<your_key>
34
+ npx test
35
+ ```
36
+
37
+ #### Entering the API Key programmatically
38
+
39
+ ```js
40
+ eyes.setApiKey('<your API key>')
41
+ ```
42
+
43
+ ### Eyes server URL {#URL}
44
+
45
+ If the Eyes server is not deployed in `https://eyes.applitools.com`, you need to set the Server URL in the environment variable `APPLITOOLS_SERVER_URL` before running tests.
46
+
47
+ The server URL of your Applitools Eyes dashboard is in the format `https://<MY_COMPANY>.applitools.com`
48
+
49
+
50
+ #### Entering the server URL on Linux or a Mac
51
+
52
+ ```bash
53
+ export APPLITOOLS_SERVER_URL=<YOUR_SERVER_URL>
54
+ ```
55
+
56
+ #### Entering the server URL on Windows
57
+
58
+ ```bash
59
+ set APPLITOOLS_SERVER_URL=<YOUR_SERVER_URL>
60
+ ```
61
+
62
+
63
+
64
+
65
+
66
+
67
+ ## Further information
68
+
69
+ For further information, see:
70
+
71
+ * [Quickstart](https://applitools.com/tutorials/sdks/puppeteer/quickstart)
72
+ * [Overview](https://applitools.com/tutorials/sdks/puppeteer)
73
+ * [Changelog](https://applitools.com/tutorials/sdks/puppeteer/changelog)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-puppeteer",
3
- "version": "1.29.1",
3
+ "version": "1.29.3",
4
4
  "description": "Applitools Eyes SDK for Puppeteer",
5
5
  "keywords": [
6
6
  "eyes-puppeteer",
@@ -37,8 +37,8 @@
37
37
  "up:framework": "echo \"$(jq '.devDependencies.puppeteer = $ENV.APPLITOOLS_FRAMEWORK_VERSION' ./package.json)\" > ./package.json"
38
38
  },
39
39
  "dependencies": {
40
- "@applitools/eyes": "1.32.6",
41
- "@applitools/spec-driver-puppeteer": "1.4.25"
40
+ "@applitools/eyes": "1.34.0",
41
+ "@applitools/spec-driver-puppeteer": "1.4.27"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@applitools/api-extractor": "^1.2.22",
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>;
@@ -266,14 +267,14 @@ export type CheckSettingsAutomationPlain = {
266
267
  scrollRootElement?: undefined | (Element | (string | Selector | { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; }));
267
268
  fully?: undefined | boolean;
268
269
  disableBrowserFetching?: undefined | boolean;
269
- layoutBreakpoints?: undefined | boolean | Array<number> | { breakpoints: boolean | Array<number>; reload?: undefined | boolean; };
270
+ layoutBreakpoints?: undefined | (boolean | Array<number> | { breakpoints: boolean | Array<number>; reload?: undefined | boolean; } | { breakpoints: boolean; heightBreakpoints: boolean; reload?: undefined | boolean; });
270
271
  visualGridOptions?: undefined | { [key: string]: any; };
271
272
  ufgOptions?: undefined | { [key: string]: any; };
272
273
  nmgOptions?: undefined | { [key: string]: any; };
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 {
@@ -295,8 +296,9 @@ export class CheckSettingsAutomation {
295
296
  fully(fully?: undefined | boolean): CheckSettingsAutomation;
296
297
  stitchContent(stitchContent?: undefined | boolean): CheckSettingsAutomation;
297
298
  disableBrowserFetching(disableBrowserFetching: boolean): CheckSettingsAutomation;
298
- layoutBreakpoints(breakpoints?: undefined | boolean, settings?: undefined | { reload?: undefined | boolean; }): CheckSettingsAutomation;
299
- layoutBreakpoints(breakpoints?: undefined | Array<number>, settings?: undefined | { reload?: undefined | boolean; }): CheckSettingsAutomation;
299
+ layoutBreakpoints(breakpoints: boolean, heightBreakpoints: boolean, settings?: undefined | { reload?: undefined | boolean; }): CheckSettingsAutomation;
300
+ layoutBreakpoints(breakpoints: boolean, settings?: undefined | { reload?: undefined | boolean; }): CheckSettingsAutomation;
301
+ layoutBreakpoints(breakpoints: Array<number>, settings?: undefined | { reload?: undefined | boolean; }): CheckSettingsAutomation;
300
302
  hook(name: string, script: string): CheckSettingsAutomation;
301
303
  beforeRenderScreenshotHook(script: string): CheckSettingsAutomation;
302
304
  webHook(script: string): CheckSettingsAutomation;
@@ -309,6 +311,7 @@ export class CheckSettingsAutomation {
309
311
  useSystemScreenshot(useSystemScreenshot?: undefined | boolean): CheckSettingsAutomation;
310
312
  timeout(timeout: number): CheckSettingsAutomation;
311
313
  waitBeforeCapture(waitBeforeCapture: number): CheckSettingsAutomation;
314
+ waitBeforeCapture(waitBeforeCapture: (() => Promise<void>)): CheckSettingsAutomation;
312
315
  lazyLoad(options?: undefined | boolean): CheckSettingsAutomation;
313
316
  lazyLoad(options?: undefined | { scrollLength?: undefined | number; waitingTime?: undefined | number; maxAmountToScroll?: undefined | number; }): CheckSettingsAutomation;
314
317
  densityMetrics(options: { scaleRatio?: undefined | number; xdpi?: undefined | number; ydpi?: undefined | number; }): CheckSettingsAutomation;
@@ -483,6 +486,7 @@ export type ConfigurationPlain = {
483
486
  enablePatterns?: undefined | boolean;
484
487
  environmentName?: undefined | string;
485
488
  forceFullPageScreenshot?: undefined | boolean;
489
+ fully?: undefined | boolean;
486
490
  gitMergeBaseTimestamp?: undefined | string;
487
491
  latestCommitInfo?: undefined | { timestamp: string; sha: string; };
488
492
  hideCaret?: undefined | boolean;
@@ -519,7 +523,7 @@ export type ConfigurationPlain = {
519
523
  useDom?: undefined | boolean;
520
524
  viewportSize?: undefined | RectangleSizePlain;
521
525
  visualGridOptions?: undefined | Record<string, any>;
522
- waitBeforeCapture?: undefined | number;
526
+ waitBeforeCapture?: undefined | number | (() => Promise<void>);
523
527
  waitBeforeScreenshots?: undefined | number;
524
528
  };
525
529
  export class Configuration implements Required<ConfigurationPlain> {
@@ -809,14 +813,19 @@ export class Configuration implements Required<ConfigurationPlain> {
809
813
  getVisualGridOptions(): { [key: string]: any; };
810
814
  setVisualGridOptions(visualGridOptions: { [key: string]: any; }): Configuration;
811
815
  setVisualGridOption(key: string, value: any): Configuration;
812
- get waitBeforeCapture(): number;
813
- set waitBeforeCapture(waitBeforeCapture: number);
814
- getWaitBeforeCapture(): number;
816
+ get waitBeforeCapture(): number | (() => Promise<void>);
817
+ set waitBeforeCapture(waitBeforeCapture: number | (() => Promise<void>));
818
+ getWaitBeforeCapture(): number | (() => Promise<void>);
815
819
  setWaitBeforeCapture(waitBeforeCapture: number): Configuration;
820
+ setWaitBeforeCapture(waitBeforeCapture: (() => Promise<void>)): Configuration;
816
821
  get waitBeforeScreenshots(): number;
817
822
  set waitBeforeScreenshots(waitBeforeScreenshots: number);
818
823
  getWaitBeforeScreenshots(): number;
819
824
  setWaitBeforeScreenshots(waitBeforeScreenshots: number): Configuration;
825
+ get fully(): boolean;
826
+ set fully(fully: boolean);
827
+ getFully(): boolean;
828
+ setFully(fully: boolean): Configuration;
820
829
  }
821
830
  export class BatchClose {
822
831
  static close(settings: { batchIds: Array<string>; serverUrl: string; apiKey: string; proxy?: undefined | ProxySettingsPlain; }): Promise<void>;