@applitools/eyes-playwright 1.37.0 → 1.37.2

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,127 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.37.2](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright@1.37.1...js/eyes-playwright@1.37.2) (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-playwright bumped to 1.5.10
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/spec-driver-puppeteer bumped to 1.4.27
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/screenshoter bumped to 3.11.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/nml-client bumped to 1.9.1
67
+ #### Performance Improvements
68
+
69
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
70
+
71
+
72
+
73
+ * @applitools/tunnel-client bumped to 1.6.5
74
+ #### Bug Fixes
75
+
76
+ * enhance error messages in tunnel client ([cab26e6](https://github.com/Applitools-Dev/sdk/commit/cab26e6e3d56fa3cbabaa1a9c68de13046b8f57e))
77
+ * @applitools/ufg-client bumped to 1.16.9
78
+ #### Bug Fixes
79
+
80
+ * 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))
81
+
82
+
83
+ #### Performance Improvements
84
+
85
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
86
+ * @applitools/ec-client bumped to 1.10.9
87
+ #### Performance Improvements
88
+
89
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
90
+
91
+
92
+
93
+ * @applitools/core bumped to 4.37.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
+
100
+ * @applitools/eyes bumped to 1.34.0
101
+ #### Features
102
+
103
+ * height layout breakpoints ([#2801](https://github.com/Applitools-Dev/sdk/issues/2801)) ([819e241](https://github.com/Applitools-Dev/sdk/commit/819e2418f1fd93220a07dfbcf1157ffcf4995dd7))
104
+
105
+
106
+ #### Bug Fixes
107
+
108
+ * 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))
109
+
110
+
111
+
112
+
113
+ ## [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)
114
+
115
+
116
+ ### Dependencies
117
+
118
+ * @applitools/core bumped to 4.35.1
119
+ #### Bug Fixes
120
+
121
+ * dummy ([9b8ffef](https://github.com/Applitools-Dev/sdk/commit/9b8ffef6277015a9073caf50f5dc5741986fbf07))
122
+ * @applitools/eyes bumped to 1.33.2
123
+
124
+
3
125
  ## [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)
4
126
 
5
127
 
package/README.md CHANGED
@@ -1,12 +1,70 @@
1
- <div align="center">
1
+ ## Applitools Eyes SDK for Playwright
2
2
 
3
- ![Applitools Eyes](https://i.ibb.co/3hWJK68/applitools-eyes-logo.png)
4
- ### Applitools Eyes SDK for [Playwright](https://playwright.dev/)
5
- [![npm](https://img.shields.io/npm/v/@applitools/eyes-playwright.svg?style=for-the-badge)](https://www.npmjs.com/package/@applitools/eyes-playwright)
3
+ ## Installation
6
4
 
7
- </div>
8
- <br/>
5
+ ### Install playwright
6
+ If you don't already have playwright installed, install with the following command. More info can be [found here](https://playwright.dev/docs/intro):
9
7
 
10
- ## Resources
11
- - [Quick start](https://applitools.com/tutorials/playwright)
12
- - [API reference](https://applitools.com/tutorials/playwright/api/overview)
8
+ ```bash
9
+ npm init playwright@latest
10
+ ```
11
+
12
+ ### Install the Eyes SDK
13
+
14
+ In your project directory, install the Applitools Eyes SDK for Playwright:
15
+
16
+ ```bash
17
+ npm install -D @applitools/eyes-playwright
18
+ ```
19
+
20
+ ### Run the interactive CLI setup
21
+
22
+ To configure your project for Applitools Eyes, run the setup tool:
23
+
24
+ ```bash
25
+ npx eyes-setup
26
+ ```
27
+
28
+ The CLI will:
29
+
30
+ - Configure your project for Applitools Eyes.
31
+ - Attempt to modify imports where possible.
32
+ - Add configuration settings to your `playwright.config.ts` file.
33
+ - Add a demo test to help you get started.
34
+ - You can run the demo test with `npx eyes-setup run-example`
35
+
36
+ _Note: In cases where imports cannot be modified automatically (e.g., when importing the `test` object from another npm package), you may need to adjust them manually. More details are provided in the [Integration with Playwright](/playwright/integration-with-playwright) section._
37
+
38
+
39
+ :::info
40
+ You may be prompted to enter your Eyes Server URL. If you are using the Applitools public cloud, your server URL will be `https://eyes.applitools.com`. If you're using a private deployment, enter your account's server URL instead.
41
+ :::
42
+
43
+ ### Set your Applitools API key
44
+
45
+ When prompted by the CLI, enter your Applitools API key. If you don't have one, you can sign up for a free account and obtain your API key [from the Applitools Dashboard](/playwright/applitools-dashboard#accessing-the-applitools-dashboard).
46
+
47
+ Alternatively, you can set the API key as an environment variable:
48
+
49
+ ```bash
50
+ export APPLITOOLS_API_KEY='your_api_key_here'
51
+ ```
52
+
53
+ It's advisable to set your API key as an environment variable `APPLITOOLS_API_KEY` instead of hardcoding it in your configuration file. This approach keeps your API key secure since configuration files are often checked into version control systems.
54
+
55
+
56
+ ## Further information
57
+
58
+ For further information, see:
59
+
60
+ ### Playwright with Fixtures
61
+
62
+ * [Quickstart](https://applitools.com/tutorials/playwright)
63
+ * [Overview](https://applitools.com/tutorials/playwright/api/overview)
64
+ * [Changelog](https://applitools.com/tutorials/playwright/api/changelog)
65
+
66
+ ### Playwright Standard
67
+
68
+ * [Quickstart](https://applitools.com/tutorials/sdks/playwright-ts-standard/quickstart)
69
+ * [Overview](https://applitools.com/tutorials/sdks/playwright-ts-standard)
70
+ * [Changelog](https://applitools.com/tutorials/sdks/playwright-ts-standard/changelog)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-playwright",
3
- "version": "1.37.0",
3
+ "version": "1.37.2",
4
4
  "description": "Applitools Eyes SDK for Playwright",
5
5
  "keywords": [
6
6
  "eyes-playwright",
@@ -59,8 +59,8 @@
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.33.0",
63
- "@applitools/spec-driver-playwright": "1.5.9",
62
+ "@applitools/eyes": "1.34.0",
63
+ "@applitools/spec-driver-playwright": "1.5.10",
64
64
  "@applitools/utils": "1.8.0",
65
65
  "@inquirer/prompts": "7.0.1",
66
66
  "chalk": "4.1.2",
package/types/index.d.ts CHANGED
@@ -267,7 +267,7 @@ export type CheckSettingsAutomationPlain = {
267
267
  scrollRootElement?: undefined | (Element | (string | Selector | { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; }));
268
268
  fully?: undefined | boolean;
269
269
  disableBrowserFetching?: undefined | boolean;
270
- 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; });
271
271
  visualGridOptions?: undefined | { [key: string]: any; };
272
272
  ufgOptions?: undefined | { [key: string]: any; };
273
273
  nmgOptions?: undefined | { [key: string]: any; };
@@ -296,8 +296,9 @@ export class CheckSettingsAutomation {
296
296
  fully(fully?: undefined | boolean): CheckSettingsAutomation;
297
297
  stitchContent(stitchContent?: undefined | boolean): CheckSettingsAutomation;
298
298
  disableBrowserFetching(disableBrowserFetching: boolean): CheckSettingsAutomation;
299
- layoutBreakpoints(breakpoints?: undefined | boolean, settings?: undefined | { reload?: undefined | boolean; }): CheckSettingsAutomation;
300
- 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;
301
302
  hook(name: string, script: string): CheckSettingsAutomation;
302
303
  beforeRenderScreenshotHook(script: string): CheckSettingsAutomation;
303
304
  webHook(script: string): CheckSettingsAutomation;