@applitools/eyes-playwright 1.37.1 → 1.37.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,204 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.37.3](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright@1.37.2...js/eyes-playwright@1.37.3) (2025-06-15)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Differentiate Between Invalid and Missing API Key Errors ([6ac17d4](https://github.com/Applitools-Dev/sdk/commit/6ac17d40d7aff45b3de5c949dc7d4673b9739bfd))
9
+ * relative links in readme | AD-9703 ([#2960](https://github.com/Applitools-Dev/sdk/issues/2960)) ([672207b](https://github.com/Applitools-Dev/sdk/commit/672207b55e30f1581defeda4f2f743eaf5b1849d))
10
+
11
+
12
+ ### Dependencies
13
+
14
+ * @applitools/dom-snapshot bumped to 4.11.22
15
+ #### Bug Fixes
16
+
17
+ * css media query group conditions | FLD-3151 ([#3023](https://github.com/Applitools-Dev/sdk/issues/3023)) ([56ec107](https://github.com/Applitools-Dev/sdk/commit/56ec107bcda6a5a330d19c278267d73de5d86d8b))
18
+
19
+
20
+
21
+ * @applitools/nml-client bumped to 1.9.5
22
+ #### Bug Fixes
23
+
24
+ * nml-client depends on core-base ([#2995](https://github.com/Applitools-Dev/sdk/issues/2995)) ([1f7cf69](https://github.com/Applitools-Dev/sdk/commit/1f7cf6930709a40a498dd1f525132648aa593af0))
25
+
26
+
27
+
28
+ * @applitools/tunnel-client bumped to 1.8.0
29
+ #### Features
30
+
31
+ * update build script to include individual zip creation ([#3008](https://github.com/Applitools-Dev/sdk/issues/3008)) ([46a0cfc](https://github.com/Applitools-Dev/sdk/commit/46a0cfcc472ab69384560095d90a7fa58b4b9186))
32
+
33
+
34
+
35
+ * @applitools/ufg-client bumped to 1.16.12
36
+ #### Bug Fixes
37
+
38
+ * remove safari-early-access browser version for js sdks | AD-10226 ([#3034](https://github.com/Applitools-Dev/sdk/issues/3034)) ([7ca09f5](https://github.com/Applitools-Dev/sdk/commit/7ca09f5c0c271570142058ea766533b86434dc2e))
39
+
40
+
41
+
42
+ * @applitools/core bumped to 4.40.0
43
+ #### Features
44
+
45
+ * update build script to include individual zip creation ([#3008](https://github.com/Applitools-Dev/sdk/issues/3008)) ([46a0cfc](https://github.com/Applitools-Dev/sdk/commit/46a0cfcc472ab69384560095d90a7fa58b4b9186))
46
+
47
+
48
+ #### Bug Fixes
49
+
50
+ * css media query group conditions | FLD-3151 ([#3023](https://github.com/Applitools-Dev/sdk/issues/3023)) ([56ec107](https://github.com/Applitools-Dev/sdk/commit/56ec107bcda6a5a330d19c278267d73de5d86d8b))
51
+ * export issues for ts js with legacy solution ([#3016](https://github.com/Applitools-Dev/sdk/issues/3016)) ([a3a9daf](https://github.com/Applitools-Dev/sdk/commit/a3a9daf9c3361bb1f253499c1335a1434ec520d1))
52
+ * extractLatestCommitInfo | FLD-3217 ([#3039](https://github.com/Applitools-Dev/sdk/issues/3039)) ([3f72a23](https://github.com/Applitools-Dev/sdk/commit/3f72a230fa0166046ea85ae004cfb544de86e628))
53
+ * handle error when sending started message in tunnel manager server ([#3019](https://github.com/Applitools-Dev/sdk/issues/3019)) ([2cdaad8](https://github.com/Applitools-Dev/sdk/commit/2cdaad896fd679187449b69abe529b006f6255ee))
54
+
55
+
56
+
57
+ * @applitools/req bumped to 1.7.13
58
+
59
+ * @applitools/dom-capture bumped to 11.5.6
60
+
61
+ * @applitools/spec-driver-webdriver bumped to 1.2.6
62
+
63
+ * @applitools/screenshoter bumped to 3.11.5
64
+
65
+ * @applitools/core-base bumped to 1.25.4
66
+ #### Bug Fixes
67
+
68
+ * Differentiate Between Invalid and Missing API Key Errors ([6ac17d4](https://github.com/Applitools-Dev/sdk/commit/6ac17d40d7aff45b3de5c949dc7d4673b9739bfd))
69
+ * export issues for ts js with legacy solution ([#3016](https://github.com/Applitools-Dev/sdk/issues/3016)) ([a3a9daf](https://github.com/Applitools-Dev/sdk/commit/a3a9daf9c3361bb1f253499c1335a1434ec520d1))
70
+
71
+
72
+
73
+ * @applitools/ec-client bumped to 1.10.15
74
+
75
+ * @applitools/eyes bumped to 1.35.1
76
+ #### Bug Fixes
77
+
78
+ * remove safari-early-access browser version for js sdks | AD-10226 ([#3034](https://github.com/Applitools-Dev/sdk/issues/3034)) ([7ca09f5](https://github.com/Applitools-Dev/sdk/commit/7ca09f5c0c271570142058ea766533b86434dc2e))
79
+
80
+
81
+
82
+ * @applitools/test-server bumped to 1.2.3
83
+ #### Bug Fixes
84
+
85
+ * 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))
86
+ * export issues for ts js with legacy solution ([#3016](https://github.com/Applitools-Dev/sdk/issues/3016)) ([a3a9daf](https://github.com/Applitools-Dev/sdk/commit/a3a9daf9c3361bb1f253499c1335a1434ec520d1))
87
+ * storybook navigation timeouts ([#2701](https://github.com/Applitools-Dev/sdk/issues/2701)) ([64e3a40](https://github.com/Applitools-Dev/sdk/commit/64e3a40a524ae76ec457ae9c2d1170fbaea5e982))
88
+
89
+
90
+
91
+
92
+ ## [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)
93
+
94
+
95
+ ### Performance Improvements
96
+
97
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
98
+
99
+
100
+ ### Dependencies
101
+
102
+ * @applitools/dom-snapshot bumped to 4.11.18
103
+ #### Bug Fixes
104
+
105
+ * 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))
106
+
107
+
108
+
109
+ * @applitools/snippets bumped to 2.6.5
110
+ #### Performance Improvements
111
+
112
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
113
+ * @applitools/driver bumped to 1.21.1
114
+ #### Bug Fixes
115
+
116
+ * executePoll error logging FLD-2870 ([#2890](https://github.com/Applitools-Dev/sdk/issues/2890)) ([a8ff720](https://github.com/Applitools-Dev/sdk/commit/a8ff720efafacabe2023282748a6d8a0f1b3ff73))
117
+
118
+
119
+
120
+ * @applitools/spec-driver-webdriver bumped to 1.2.2
121
+ #### Performance Improvements
122
+
123
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
124
+
125
+
126
+
127
+ * @applitools/spec-driver-selenium bumped to 1.5.98
128
+ #### Performance Improvements
129
+
130
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
131
+
132
+
133
+
134
+ * @applitools/spec-driver-playwright bumped to 1.5.10
135
+ #### Performance Improvements
136
+
137
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
138
+
139
+
140
+
141
+ * @applitools/spec-driver-puppeteer bumped to 1.4.27
142
+ #### Performance Improvements
143
+
144
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
145
+
146
+
147
+
148
+ * @applitools/screenshoter bumped to 3.11.1
149
+ #### Performance Improvements
150
+
151
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
152
+
153
+
154
+
155
+ * @applitools/nml-client bumped to 1.9.1
156
+ #### Performance Improvements
157
+
158
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
159
+
160
+
161
+
162
+ * @applitools/tunnel-client bumped to 1.6.5
163
+ #### Bug Fixes
164
+
165
+ * enhance error messages in tunnel client ([cab26e6](https://github.com/Applitools-Dev/sdk/commit/cab26e6e3d56fa3cbabaa1a9c68de13046b8f57e))
166
+ * @applitools/ufg-client bumped to 1.16.9
167
+ #### Bug Fixes
168
+
169
+ * 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))
170
+
171
+
172
+ #### Performance Improvements
173
+
174
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
175
+ * @applitools/ec-client bumped to 1.10.9
176
+ #### Performance Improvements
177
+
178
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
179
+
180
+
181
+
182
+ * @applitools/core bumped to 4.37.0
183
+ #### Features
184
+
185
+ * height layout breakpoints ([#2801](https://github.com/Applitools-Dev/sdk/issues/2801)) ([819e241](https://github.com/Applitools-Dev/sdk/commit/819e2418f1fd93220a07dfbcf1157ffcf4995dd7))
186
+
187
+
188
+
189
+ * @applitools/eyes bumped to 1.34.0
190
+ #### Features
191
+
192
+ * height layout breakpoints ([#2801](https://github.com/Applitools-Dev/sdk/issues/2801)) ([819e241](https://github.com/Applitools-Dev/sdk/commit/819e2418f1fd93220a07dfbcf1157ffcf4995dd7))
193
+
194
+
195
+ #### Bug Fixes
196
+
197
+ * 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))
198
+
199
+
200
+
201
+
3
202
  ## [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
203
 
5
204
 
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](https://applitools.com/tutorials/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](https://applitools.com/tutorials/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)
@@ -38,7 +38,12 @@ function addBatchDefaults({ configuration }) {
38
38
  (_c = batch.name) !== null && _c !== void 0 ? _c : (batch.name = (0, name_1.getBatchName)({ appName: configuration.appName }));
39
39
  (_d = batch.properties) !== null && _d !== void 0 ? _d : (batch.properties = []);
40
40
  batch.properties.push({ name: 'CI', value: process.env.CI ? 'true' : 'false' });
41
- batch.properties.push({ name: 'Playwright version', value: require('playwright-core/package.json').version });
41
+ try {
42
+ batch.properties.push({ name: 'Playwright version', value: require('playwright-core/package.json').version });
43
+ }
44
+ catch {
45
+ // NOTE: ignore error
46
+ }
42
47
  return batch;
43
48
  }
44
49
  function getFinalEyesConfiguration({ playwrightConfig = {}, projectConfig = {}, eyesConfig = {}, testInfo, }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-playwright",
3
- "version": "1.37.1",
3
+ "version": "1.37.3",
4
4
  "description": "Applitools Eyes SDK for Playwright",
5
5
  "keywords": [
6
6
  "eyes-playwright",
@@ -13,7 +13,7 @@
13
13
  "tests",
14
14
  "playwright"
15
15
  ],
16
- "homepage": "https://applitools.com/docs/api-ref/sdk-api/playwright/javascript/",
16
+ "homepage": "https://applitools.com/tutorials/sdks/playwright-ts-standard",
17
17
  "license": "SEE LICENSE IN LICENSE",
18
18
  "author": {
19
19
  "name": "Applitools Team",
@@ -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.33.2",
63
- "@applitools/spec-driver-playwright": "1.5.9",
64
- "@applitools/utils": "1.8.0",
62
+ "@applitools/eyes": "1.35.1",
63
+ "@applitools/spec-driver-playwright": "1.5.13",
64
+ "@applitools/utils": "1.8.2",
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
@@ -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;
@@ -836,7 +837,7 @@ export class BatchClose {
836
837
  setProxy(proxy: ProxySettingsPlain): BatchClose;
837
838
  }
838
839
  export const closeBatch: (options: { batchIds: Array<string>; serverUrl: string; apiKey: string; proxy?: undefined | ProxySettingsPlain; }) => Promise<void>;
839
- export type BrowserTypePlain = "chrome" | "chrome-one-version-back" | "chrome-two-versions-back" | "firefox" | "firefox-one-version-back" | "firefox-two-versions-back" | "ie" | "ie10" | "edge" | "edgechromium" | "edgelegacy" | "edgechromium-one-version-back" | "edgechromium-two-versions-back" | "safari" | "safari-earlyaccess" | "safari-one-version-back" | "safari-two-versions-back";
840
+ export type BrowserTypePlain = "chrome" | "chrome-one-version-back" | "chrome-two-versions-back" | "firefox" | "firefox-one-version-back" | "firefox-two-versions-back" | "ie" | "ie10" | "edge" | "edgechromium" | "edgelegacy" | "edgechromium-one-version-back" | "edgechromium-two-versions-back" | "safari" | "safari-one-version-back" | "safari-two-versions-back";
840
841
  export enum BrowserType {
841
842
  CHROME = 'chrome',
842
843
  CHROME_ONE_VERSION_BACK = 'chrome-one-version-back',
@@ -852,7 +853,6 @@ export enum BrowserType {
852
853
  EDGE_CHROMIUM_ONE_VERSION_BACK = 'edgechromium-one-version-back',
853
854
  EDGE_CHROMIUM_TWO_VERSIONS_BACK = 'edgechromium-two-versions-back',
854
855
  SAFARI = 'safari',
855
- SAFARI_EARLY_ACCESS = 'safari-earlyaccess',
856
856
  SAFARI_ONE_VERSION_BACK = 'safari-one-version-back',
857
857
  SAFARI_TWO_VERSIONS_BACK = 'safari-two-versions-back'
858
858
  }