@applitools/eyes-cypress 3.52.1 → 3.53.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,204 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.53.1](https://github.com/Applitools-Dev/sdk/compare/js/eyes-cypress@3.53.0...js/eyes-cypress@3.53.1) (2025-07-15)
4
+
5
+
6
+ ### Performance Improvements
7
+
8
+ * yarn dedup packages ([#3061](https://github.com/Applitools-Dev/sdk/issues/3061)) ([2fd8951](https://github.com/Applitools-Dev/sdk/commit/2fd8951d6ce9c18a5dbdb648adaa2c454eae9b4e))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/dom-snapshot bumped to 4.12.1
14
+ #### Performance Improvements
15
+
16
+ * yarn dedup packages ([#3061](https://github.com/Applitools-Dev/sdk/issues/3061)) ([2fd8951](https://github.com/Applitools-Dev/sdk/commit/2fd8951d6ce9c18a5dbdb648adaa2c454eae9b4e))
17
+
18
+
19
+
20
+ * @applitools/req bumped to 1.7.15
21
+ #### Performance Improvements
22
+
23
+ * yarn dedup packages ([#3061](https://github.com/Applitools-Dev/sdk/issues/3061)) ([2fd8951](https://github.com/Applitools-Dev/sdk/commit/2fd8951d6ce9c18a5dbdb648adaa2c454eae9b4e))
24
+ * @applitools/driver bumped to 1.22.1
25
+ #### Performance Improvements
26
+
27
+ * yarn dedup packages ([#3061](https://github.com/Applitools-Dev/sdk/issues/3061)) ([2fd8951](https://github.com/Applitools-Dev/sdk/commit/2fd8951d6ce9c18a5dbdb648adaa2c454eae9b4e))
28
+ * @applitools/spec-driver-webdriver bumped to 1.3.1
29
+
30
+ * @applitools/spec-driver-puppeteer bumped to 1.5.1
31
+
32
+ * @applitools/screenshoter bumped to 3.11.7
33
+ #### Performance Improvements
34
+
35
+ * yarn dedup packages ([#3061](https://github.com/Applitools-Dev/sdk/issues/3061)) ([2fd8951](https://github.com/Applitools-Dev/sdk/commit/2fd8951d6ce9c18a5dbdb648adaa2c454eae9b4e))
36
+
37
+
38
+
39
+ * @applitools/nml-client bumped to 1.9.7
40
+ #### Performance Improvements
41
+
42
+ * yarn dedup packages ([#3061](https://github.com/Applitools-Dev/sdk/issues/3061)) ([2fd8951](https://github.com/Applitools-Dev/sdk/commit/2fd8951d6ce9c18a5dbdb648adaa2c454eae9b4e))
43
+
44
+
45
+
46
+ * @applitools/tunnel-client bumped to 1.9.0
47
+ #### Features
48
+
49
+ * enable EC healthchecks | AD-10040 ([#3017](https://github.com/Applitools-Dev/sdk/issues/3017)) ([c01c300](https://github.com/Applitools-Dev/sdk/commit/c01c300259427ddae53147a64d30b152960503d9))
50
+
51
+
52
+
53
+ * @applitools/ufg-client bumped to 1.16.14
54
+ #### Performance Improvements
55
+
56
+ * yarn dedup packages ([#3061](https://github.com/Applitools-Dev/sdk/issues/3061)) ([2fd8951](https://github.com/Applitools-Dev/sdk/commit/2fd8951d6ce9c18a5dbdb648adaa2c454eae9b4e))
57
+
58
+
59
+
60
+ * @applitools/core-base bumped to 1.25.6
61
+ #### Performance Improvements
62
+
63
+ * yarn dedup packages ([#3061](https://github.com/Applitools-Dev/sdk/issues/3061)) ([2fd8951](https://github.com/Applitools-Dev/sdk/commit/2fd8951d6ce9c18a5dbdb648adaa2c454eae9b4e))
64
+
65
+
66
+
67
+ * @applitools/ec-client bumped to 1.11.0
68
+ #### Features
69
+
70
+ * enable EC healthchecks | AD-10040 ([#3017](https://github.com/Applitools-Dev/sdk/issues/3017)) ([c01c300](https://github.com/Applitools-Dev/sdk/commit/c01c300259427ddae53147a64d30b152960503d9))
71
+
72
+
73
+ #### Performance Improvements
74
+
75
+ * yarn dedup packages ([#3061](https://github.com/Applitools-Dev/sdk/issues/3061)) ([2fd8951](https://github.com/Applitools-Dev/sdk/commit/2fd8951d6ce9c18a5dbdb648adaa2c454eae9b4e))
76
+
77
+
78
+
79
+ * @applitools/spec-driver-selenium bumped to 1.6.1
80
+
81
+ * @applitools/core bumped to 4.42.0
82
+ #### Features
83
+
84
+ * enable EC healthchecks | AD-10040 ([#3017](https://github.com/Applitools-Dev/sdk/issues/3017)) ([c01c300](https://github.com/Applitools-Dev/sdk/commit/c01c300259427ddae53147a64d30b152960503d9))
85
+
86
+
87
+ #### Performance Improvements
88
+
89
+ * yarn dedup packages ([#3061](https://github.com/Applitools-Dev/sdk/issues/3061)) ([2fd8951](https://github.com/Applitools-Dev/sdk/commit/2fd8951d6ce9c18a5dbdb648adaa2c454eae9b4e))
90
+
91
+
92
+
93
+ * @applitools/eyes bumped to 1.35.2
94
+ #### Performance Improvements
95
+
96
+ * yarn dedup packages ([#3061](https://github.com/Applitools-Dev/sdk/issues/3061)) ([2fd8951](https://github.com/Applitools-Dev/sdk/commit/2fd8951d6ce9c18a5dbdb648adaa2c454eae9b4e))
97
+
98
+
99
+
100
+
101
+ ## [3.53.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes-cypress@3.52.1...js/eyes-cypress@3.53.0) (2025-07-07)
102
+
103
+
104
+ ### Features
105
+
106
+ * canvas webgl without preserveDrawingBuffer=1 | FLD-3144 ([#3040](https://github.com/Applitools-Dev/sdk/issues/3040)) ([f82d8f1](https://github.com/Applitools-Dev/sdk/commit/f82d8f148f913098752ec7bef8635a46b453d6fa))
107
+
108
+
109
+ ### Dependencies
110
+
111
+ * @applitools/utils bumped to 1.9.0
112
+ #### Features
113
+
114
+ * support https_proxy and http_proxy env variables | FLD-2702 ([#3046](https://github.com/Applitools-Dev/sdk/issues/3046)) ([0633809](https://github.com/Applitools-Dev/sdk/commit/06338099f44bfb149a5829f62c2f9b19e2392850))
115
+ * @applitools/logger bumped to 2.1.5
116
+
117
+ * @applitools/dom-snapshot bumped to 4.12.0
118
+ #### Features
119
+
120
+ * canvas webgl without preserveDrawingBuffer=1 | FLD-3144 ([#3040](https://github.com/Applitools-Dev/sdk/issues/3040)) ([f82d8f1](https://github.com/Applitools-Dev/sdk/commit/f82d8f148f913098752ec7bef8635a46b453d6fa))
121
+
122
+
123
+ #### Bug Fixes
124
+
125
+ * support for programmatically added nested css rules | FLD-3212 ([#3049](https://github.com/Applitools-Dev/sdk/issues/3049)) ([5abb0f7](https://github.com/Applitools-Dev/sdk/commit/5abb0f7904c4d9e4b716291abecad54554b9ca01))
126
+
127
+
128
+
129
+ * @applitools/socket bumped to 1.2.6
130
+
131
+ * @applitools/req bumped to 1.7.14
132
+
133
+ * @applitools/image bumped to 1.1.21
134
+
135
+ * @applitools/driver bumped to 1.22.0
136
+ #### Features
137
+
138
+ * canvas webgl without preserveDrawingBuffer=1 | FLD-3144 ([#3040](https://github.com/Applitools-Dev/sdk/issues/3040)) ([f82d8f1](https://github.com/Applitools-Dev/sdk/commit/f82d8f148f913098752ec7bef8635a46b453d6fa))
139
+
140
+
141
+
142
+ * @applitools/spec-driver-webdriver bumped to 1.3.0
143
+ #### Features
144
+
145
+ * canvas webgl without preserveDrawingBuffer=1 | FLD-3144 ([#3040](https://github.com/Applitools-Dev/sdk/issues/3040)) ([f82d8f1](https://github.com/Applitools-Dev/sdk/commit/f82d8f148f913098752ec7bef8635a46b453d6fa))
146
+ * support https_proxy and http_proxy env variables | FLD-2702 ([#3046](https://github.com/Applitools-Dev/sdk/issues/3046)) ([0633809](https://github.com/Applitools-Dev/sdk/commit/06338099f44bfb149a5829f62c2f9b19e2392850))
147
+
148
+
149
+
150
+ * @applitools/spec-driver-selenium bumped to 1.6.0
151
+ #### Features
152
+
153
+ * canvas webgl without preserveDrawingBuffer=1 | FLD-3144 ([#3040](https://github.com/Applitools-Dev/sdk/issues/3040)) ([f82d8f1](https://github.com/Applitools-Dev/sdk/commit/f82d8f148f913098752ec7bef8635a46b453d6fa))
154
+
155
+
156
+
157
+ * @applitools/spec-driver-puppeteer bumped to 1.5.0
158
+ #### Features
159
+
160
+ * canvas webgl without preserveDrawingBuffer=1 | FLD-3144 ([#3040](https://github.com/Applitools-Dev/sdk/issues/3040)) ([f82d8f1](https://github.com/Applitools-Dev/sdk/commit/f82d8f148f913098752ec7bef8635a46b453d6fa))
161
+
162
+
163
+
164
+ * @applitools/screenshoter bumped to 3.11.6
165
+
166
+ * @applitools/nml-client bumped to 1.9.6
167
+ #### Bug Fixes
168
+
169
+ * add retries for ConnectEnomem errors | FLD-3015 ([#3052](https://github.com/Applitools-Dev/sdk/issues/3052)) ([92caa45](https://github.com/Applitools-Dev/sdk/commit/92caa452b4a6d6f86c903548b40f8207a0ed11d0))
170
+
171
+
172
+
173
+ * @applitools/core-base bumped to 1.25.5
174
+ #### Bug Fixes
175
+
176
+ * add retries for ConnectEnomem errors | FLD-3015 ([#3052](https://github.com/Applitools-Dev/sdk/issues/3052)) ([92caa45](https://github.com/Applitools-Dev/sdk/commit/92caa452b4a6d6f86c903548b40f8207a0ed11d0))
177
+
178
+
179
+
180
+ * @applitools/tunnel-client bumped to 1.8.1
181
+
182
+ * @applitools/ufg-client bumped to 1.16.13
183
+
184
+ * @applitools/ec-client bumped to 1.10.16
185
+
186
+ * @applitools/core bumped to 4.41.0
187
+ #### Features
188
+
189
+ * canvas webgl without preserveDrawingBuffer=1 | FLD-3144 ([#3040](https://github.com/Applitools-Dev/sdk/issues/3040)) ([f82d8f1](https://github.com/Applitools-Dev/sdk/commit/f82d8f148f913098752ec7bef8635a46b453d6fa))
190
+ * support https_proxy and http_proxy env variables | FLD-2702 ([#3046](https://github.com/Applitools-Dev/sdk/issues/3046)) ([0633809](https://github.com/Applitools-Dev/sdk/commit/06338099f44bfb149a5829f62c2f9b19e2392850))
191
+
192
+
193
+ #### Bug Fixes
194
+
195
+ * add retries for ConnectEnomem errors | FLD-3015 ([#3052](https://github.com/Applitools-Dev/sdk/issues/3052)) ([92caa45](https://github.com/Applitools-Dev/sdk/commit/92caa452b4a6d6f86c903548b40f8207a0ed11d0))
196
+ * determine storybook 9 version | AD-10406 ([#3054](https://github.com/Applitools-Dev/sdk/issues/3054)) ([23486bf](https://github.com/Applitools-Dev/sdk/commit/23486bf1c9dc905d243239214e0e838d54c0b3c2))
197
+ * support for programmatically added nested css rules | FLD-3212 ([#3049](https://github.com/Applitools-Dev/sdk/issues/3049)) ([5abb0f7](https://github.com/Applitools-Dev/sdk/commit/5abb0f7904c4d9e4b716291abecad54554b9ca01))
198
+
199
+
200
+
201
+
3
202
  ## [3.52.1](https://github.com/Applitools-Dev/sdk/compare/js/eyes-cypress@3.52.0...js/eyes-cypress@3.52.1) (2025-06-15)
4
203
 
5
204
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.executeUserFunction = exports.reload = exports.getCookies = exports.getUrl = exports.getTitle = exports.findElements = exports.findElement = exports.transformSelector = exports.setViewportSize = exports.getViewportSize = exports.childContext = exports.parentContext = exports.mainContext = exports.executeScript = void 0;
3
+ exports.executeUserFunction = exports.reload = exports.executeBrowserCommands = exports.getCookies = exports.getUrl = exports.getTitle = exports.findElements = exports.findElement = exports.transformSelector = exports.setViewportSize = exports.getViewportSize = exports.childContext = exports.parentContext = exports.mainContext = exports.executeScript = void 0;
4
4
  function executeScript(context, script, arg) {
5
5
  let scriptToExecute;
6
6
  if (script.includes('dom-snapshot') || script.includes('dom-capture') || script.includes('dom-shared')) {
@@ -110,6 +110,15 @@ function getCookies() {
110
110
  return Cypress.automation('get:cookies', {});
111
111
  }
112
112
  exports.getCookies = getCookies;
113
+ async function executeBrowserCommands({ commands }) {
114
+ let lastResponse;
115
+ for (const currentCommand of commands) {
116
+ lastResponse = await Cypress.automation('remote:debugger:protocol', currentCommand);
117
+ Cypress.log({ name: 'executeBrowserCommands', message: { command: currentCommand.command, lastResponse } });
118
+ }
119
+ return lastResponse;
120
+ }
121
+ exports.executeBrowserCommands = executeBrowserCommands;
113
122
  function reload() {
114
123
  return new Promise(resolve => {
115
124
  cy.once('window:load', resolve);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-cypress",
3
- "version": "3.52.1",
3
+ "version": "3.53.1",
4
4
  "homepage": "https://applitools.com/tutorials/sdks/cypress",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "main": "./index.js",
@@ -21,15 +21,13 @@
21
21
  "lint": "run --top-level eslint \"**/*.{js,ts}\"",
22
22
  "build": "run --top-level tspc --project ./tsconfig.build.json",
23
23
  "generate:tests": "NODE_OPTIONS='--experimental-import-meta-resolve --experimental-loader=@applitools/generic/dist/code-loader.js' generic ./test/generic/config.mjs",
24
- "test": "yarn test:unit && yarn test:it && yarn test:ts:compile && yarn test:setup && yarn test:components && yarn test:e2e",
24
+ "test": "yarn test:unit && yarn test:it && yarn test:ts:compile && yarn test:setup && yarn test:components",
25
25
  "test:unit": "run --top-level mocha --no-timeouts 'test/unit/**/*.test.{js,ts}'",
26
26
  "test:it": "run --top-level mocha --no-timeouts 'test/it/**/*.test.js'",
27
27
  "test:setup": "run --top-level mocha --no-timeouts 'test/setup/**/*.test.js'",
28
28
  "test:ts": "yarn test:ts:compile && yarn test:ts:run",
29
29
  "test:ts:compile": "run --top-level tsc --project test/e2e/ts/cypress",
30
30
  "test:ts:run:legacy": "yarn cypress9 run --config-file ./test/e2e/ts/cypress-ts-legacy.json",
31
- "cypress8": "../../node_modules/cypress8/bin/cypress",
32
- "test:ts:run:8": "yarn cypress8 run --project ./test/e2e/ts --config-file ./cypress-8.config.ts",
33
31
  "cypress9": "../../node_modules/cypress9/bin/cypress",
34
32
  "test:ts:run:9": "yarn cypress9 run --project ./test/e2e/ts --config-file ./cypress-9.config.ts",
35
33
  "cypress10": "../../node_modules/cypress10/bin/cypress",
@@ -40,10 +38,10 @@
40
38
  "test:ts:run:12": "yarn cypress12 run --project ./test/e2e/ts --config-file ./cypress-12.config.ts",
41
39
  "cypress13": "../../node_modules/cypress13/bin/cypress",
42
40
  "test:ts:run:13": "yarn cypress13 run --project ./test/e2e/ts --config-file ./cypress-13.config.ts",
43
- "test:ts:run": "yarn cypress$APPLITOOLS_FRAMEWORK_VERSION run --project ./test/e2e/ts --config-file ./cypress-$APPLITOOLS_FRAMEWORK_VERSION.config.ts",
41
+ "test:ts:run": "yarn cypress$APPLITOOLS_FRAMEWORK_VERSION run --browser chrome --project ./test/e2e/ts --config-file ./cypress-$APPLITOOLS_FRAMEWORK_VERSION.config.ts",
44
42
  "test:coverage": "cd test/generic && yarn && MOCHA_GROUP=coverage APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-cypress' APPLITOOLS_BATCH_ID=$(uuidgen) npx cypress run",
45
43
  "test:coverage:chrome": "cd test/generic && yarn && MOCHA_GROUP=coverage APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-cypress' APPLITOOLS_BATCH_ID=$(uuidgen) npx cypress run --browser chrome",
46
- "test:e2e": "MOCHA_GROUP=e2e mkdir -p test/fixtures/testAppCopies && run --top-level mocha --no-timeouts --parallel --jobs ${MOCHA_JOBS:-2} 'test/e2e/**/*.test.js'",
44
+ "test:e2e": "MOCHA_GROUP=e2e mkdir -p test/fixtures/testAppCopies && run --top-level mocha --no-timeouts 'test/e2e/**/*.test.js'",
47
45
  "test:components": "cd test/components && yarn && npx cypress run --component",
48
46
  "cypress": "cypress open --config-file test/fixtures/cypress-play.json",
49
47
  "cypress:new": "cd test/play && yarn && npx cypress open",
@@ -54,11 +52,11 @@
54
52
  "setup": "run --top-level xvfb:setup"
55
53
  },
56
54
  "dependencies": {
57
- "@applitools/core": "4.40.0",
58
- "@applitools/eyes": "1.35.1",
55
+ "@applitools/core": "4.42.0",
56
+ "@applitools/eyes": "1.35.2",
59
57
  "@applitools/functional-commons": "1.6.0",
60
- "@applitools/logger": "2.1.4",
61
- "@applitools/utils": "1.8.2",
58
+ "@applitools/logger": "2.1.5",
59
+ "@applitools/utils": "1.9.0",
62
60
  "boxen": "5.1.2",
63
61
  "chalk": "3.0.0",
64
62
  "semver": "7.6.2",
@@ -72,6 +70,7 @@
72
70
  "@applitools/snaptdout": "^1.0.0",
73
71
  "@applitools/test-server": "^1.2.3",
74
72
  "@applitools/test-utils": "^1.5.17",
73
+ "@types/he": "^1",
75
74
  "@types/node": "^12.20.55",
76
75
  "@types/semver": "^7.5.8",
77
76
  "@types/uuid": "^9.0.0",
@@ -79,15 +78,15 @@
79
78
  "chai": "4.2.0",
80
79
  "chai-spies": "1.0.0",
81
80
  "cookie-parser": "1.4.4",
82
- "cypress": "9.7.0",
81
+ "cypress": "^9.7",
83
82
  "cypress-multi-reporters": "^1.6.3",
84
83
  "cypress10": "npm:cypress@^10.0.0",
85
84
  "cypress11": "npm:cypress@^11.0.0",
86
85
  "cypress12": "npm:cypress@^12.0.0",
87
86
  "cypress13": "npm:cypress@^13.0.0",
88
- "cypress6.5": "npm:cypress@6.5.0",
89
- "cypress8": "npm:cypress@^8.7.0",
90
- "cypress9": "npm:cypress@^9.0.0",
87
+ "cypress6.5": "npm:cypress@^6.5",
88
+ "cypress9": "npm:cypress@^9.7",
89
+ "he": "^1.2.0",
91
90
  "jsdom": "^25.0.1",
92
91
  "lodash.omit": "4.5.0",
93
92
  "mocha": "^10.2.0",
@@ -1,4 +1,5 @@
1
1
  const spec = require('../../dist/browser/spec-driver')
2
+ // import * as spec from './spec-driver'
2
3
  const {derefArgs} = require('./derefArgs')
3
4
 
4
5
  function socketCommands(socket, refer) {
@@ -46,6 +47,10 @@ function socketCommands(socket, refer) {
46
47
  return await spec.getCookies()
47
48
  })
48
49
 
50
+ socket.command('Driver.executeBrowserCommands', async ({commands}) => {
51
+ return await spec.executeBrowserCommands({commands})
52
+ })
53
+
49
54
  socket.command('Driver.reload', async () => {
50
55
  await spec.reload()
51
56
  })
@@ -1,3 +1,5 @@
1
+ import type {BrowserCommand} from '@applitools/driver'
2
+
1
3
  type EyesSelector = {selector: string; type?: string}
2
4
  export type Selector = (string | EyesSelector) & {__applitoolsBrand?: never}
3
5
  export type Context = Document & {__applitoolsBrand?: never}
@@ -112,6 +114,15 @@ export function getCookies(): Array<any> {
112
114
  return Cypress.automation('get:cookies', {})
113
115
  }
114
116
 
117
+ export async function executeBrowserCommands({commands}: {commands: BrowserCommand[]}): Promise<any> {
118
+ let lastResponse
119
+ for (const currentCommand of commands) {
120
+ lastResponse = await Cypress.automation('remote:debugger:protocol', currentCommand)
121
+ Cypress.log({name: 'executeBrowserCommands', message: {command: currentCommand.command, lastResponse}})
122
+ }
123
+ return lastResponse
124
+ }
125
+
115
126
  export function reload(): Promise<void> {
116
127
  return new Promise(resolve => {
117
128
  cy.once('window:load', resolve)