@applitools/eyes-cypress 3.58.2 → 3.58.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 +82 -0
- package/package.json +5 -5
- package/src/browser/commands.js +13 -5
- package/src/errors/EyesError.js +1 -0
- package/src/errors/EyesNotOpenError.js +14 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,87 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.58.3](https://github.com/Applitools-Dev/sdk/compare/js/eyes-cypress@3.58.2...js/eyes-cypress@3.58.3) (2026-02-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* closing eyes without open | FLD-2814 ([#2916](https://github.com/Applitools-Dev/sdk/issues/2916)) ([d5425df](https://github.com/Applitools-Dev/sdk/commit/d5425dfedcc98bebd547d0d1ce5bcd10fa675c0d))
|
|
9
|
+
* skip story selection on initial load | AD-12491 ([#3508](https://github.com/Applitools-Dev/sdk/issues/3508)) ([42565b4](https://github.com/Applitools-Dev/sdk/commit/42565b43d2a29d90f9a331f933a02e98fbba2789))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Dependencies
|
|
13
|
+
|
|
14
|
+
* @applitools/logger bumped to 2.2.8
|
|
15
|
+
#### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* use utils for environment variable retrieval in logger handlers ([#3551](https://github.com/Applitools-Dev/sdk/issues/3551)) ([caf97f3](https://github.com/Applitools-Dev/sdk/commit/caf97f34207bc3b8ee6ccda2855c27a99a262f8c))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
#### Performance Improvements
|
|
21
|
+
|
|
22
|
+
* add timing logs to classic | FLD-4137 ([#3543](https://github.com/Applitools-Dev/sdk/issues/3543)) ([de2b0aa](https://github.com/Applitools-Dev/sdk/commit/de2b0aaf08d813f2c59e9552947c2f4fbc12da48))
|
|
23
|
+
* @applitools/eyes bumped to 1.38.3
|
|
24
|
+
#### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* closing eyes without open | FLD-2814 ([#2916](https://github.com/Applitools-Dev/sdk/issues/2916)) ([d5425df](https://github.com/Applitools-Dev/sdk/commit/d5425dfedcc98bebd547d0d1ce5bcd10fa675c0d))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
* @applitools/test-server bumped to 1.4.0
|
|
31
|
+
#### Features
|
|
32
|
+
|
|
33
|
+
* make eyes-browser truly browser-importable ([#3512](https://github.com/Applitools-Dev/sdk/issues/3512)) ([9574a2f](https://github.com/Applitools-Dev/sdk/commit/9574a2fa45ec80466dfe93744c8a736f40fb51c3))
|
|
34
|
+
* mcp server test results support and improvements to initial setup ([#3518](https://github.com/Applitools-Dev/sdk/issues/3518)) ([ef6c27b](https://github.com/Applitools-Dev/sdk/commit/ef6c27b9e35dc54fd588e19a4811631433e15dbb))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
* @applitools/dom-snapshot bumped to 4.15.8
|
|
39
|
+
|
|
40
|
+
* @applitools/socket bumped to 1.3.9
|
|
41
|
+
|
|
42
|
+
* @applitools/req bumped to 1.8.8
|
|
43
|
+
|
|
44
|
+
* @applitools/dom-capture bumped to 11.6.9
|
|
45
|
+
|
|
46
|
+
* @applitools/driver bumped to 1.25.1
|
|
47
|
+
|
|
48
|
+
* @applitools/spec-driver-webdriver bumped to 1.5.6
|
|
49
|
+
|
|
50
|
+
* @applitools/spec-driver-selenium bumped to 1.7.12
|
|
51
|
+
|
|
52
|
+
* @applitools/spec-driver-puppeteer bumped to 1.7.1
|
|
53
|
+
|
|
54
|
+
* @applitools/screenshoter bumped to 3.12.13
|
|
55
|
+
|
|
56
|
+
* @applitools/nml-client bumped to 1.11.16
|
|
57
|
+
|
|
58
|
+
* @applitools/tunnel-client bumped to 1.11.6
|
|
59
|
+
#### Bug Fixes
|
|
60
|
+
|
|
61
|
+
* tunnel client binary ([#3535](https://github.com/Applitools-Dev/sdk/issues/3535)) ([5c4752e](https://github.com/Applitools-Dev/sdk/commit/5c4752e3dd9cc42052d23793284dc6a0cd8e3b72))
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
* @applitools/ufg-client bumped to 1.19.1
|
|
66
|
+
|
|
67
|
+
* @applitools/core-base bumped to 1.31.2
|
|
68
|
+
|
|
69
|
+
* @applitools/ec-client bumped to 1.12.18
|
|
70
|
+
|
|
71
|
+
* @applitools/core bumped to 4.56.2
|
|
72
|
+
#### Bug Fixes
|
|
73
|
+
|
|
74
|
+
* closing eyes without open | FLD-2814 ([#2916](https://github.com/Applitools-Dev/sdk/issues/2916)) ([d5425df](https://github.com/Applitools-Dev/sdk/commit/d5425dfedcc98bebd547d0d1ce5bcd10fa675c0d))
|
|
75
|
+
* tunnel client binary ([#3535](https://github.com/Applitools-Dev/sdk/issues/3535)) ([5c4752e](https://github.com/Applitools-Dev/sdk/commit/5c4752e3dd9cc42052d23793284dc6a0cd8e3b72))
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
#### Performance Improvements
|
|
79
|
+
|
|
80
|
+
* add timing logs to classic | FLD-4137 ([#3543](https://github.com/Applitools-Dev/sdk/issues/3543)) ([de2b0aa](https://github.com/Applitools-Dev/sdk/commit/de2b0aaf08d813f2c59e9552947c2f4fbc12da48))
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
3
85
|
## [3.58.2](https://github.com/Applitools-Dev/sdk/compare/js/eyes-cypress@3.58.1...js/eyes-cypress@3.58.2) (2026-01-27)
|
|
4
86
|
|
|
5
87
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-cypress",
|
|
3
|
-
"version": "3.58.
|
|
3
|
+
"version": "3.58.3",
|
|
4
4
|
"homepage": "https://applitools.com/tutorials/sdks/cypress",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"setup": "run --top-level xvfb:setup"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@applitools/core": "4.56.
|
|
56
|
-
"@applitools/eyes": "1.38.
|
|
55
|
+
"@applitools/core": "4.56.2",
|
|
56
|
+
"@applitools/eyes": "1.38.3",
|
|
57
57
|
"@applitools/functional-commons": "1.6.0",
|
|
58
|
-
"@applitools/logger": "2.2.
|
|
58
|
+
"@applitools/logger": "2.2.8",
|
|
59
59
|
"@applitools/utils": "1.14.1",
|
|
60
60
|
"boxen": "5.1.2",
|
|
61
61
|
"chalk": "3.0.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@applitools/bongo": "^5.10.0",
|
|
69
69
|
"@applitools/generic": "^3.9.2",
|
|
70
70
|
"@applitools/snaptdout": "^1.1.0",
|
|
71
|
-
"@applitools/test-server": "^1.
|
|
71
|
+
"@applitools/test-server": "^1.4.0",
|
|
72
72
|
"@applitools/test-utils": "^1.5.17",
|
|
73
73
|
"@types/he": "^1",
|
|
74
74
|
"@types/node": "^12.20.55",
|
package/src/browser/commands.js
CHANGED
|
@@ -17,6 +17,7 @@ const throwErr = Cypress.config('failCypressOnDiff')
|
|
|
17
17
|
const {transformCypressConfig} = require('../../dist/browser/transformCypressConfig')
|
|
18
18
|
const {mergeCypressConfigs} = require('../../dist/browser/mergeCypressConfigs')
|
|
19
19
|
const {transformCypressCheckSettings} = require('../../dist/browser/transformCypressCheckSettings')
|
|
20
|
+
const {EyesNotOpenError} = require('../errors/EyesNotOpenError')
|
|
20
21
|
socketCommands(socket, refer)
|
|
21
22
|
|
|
22
23
|
let manager,
|
|
@@ -24,13 +25,15 @@ let manager,
|
|
|
24
25
|
closePromiseArr = [],
|
|
25
26
|
_summary,
|
|
26
27
|
connectedToUniversal,
|
|
27
|
-
openAndGlobalConfig
|
|
28
|
+
openAndGlobalConfig,
|
|
29
|
+
isOpen = false
|
|
28
30
|
|
|
29
31
|
const deleteTest = options => socket.request('Core.deleteTest', options)
|
|
30
32
|
|
|
31
33
|
async function getSummary() {
|
|
32
34
|
if (_summary) return _summary
|
|
33
35
|
await Promise.all(closePromiseArr)
|
|
36
|
+
isOpen = false
|
|
34
37
|
const removeDuplicateTests = Cypress.config('eyesRemoveDuplicateTests')
|
|
35
38
|
_summary = socket
|
|
36
39
|
.request('EyesManager.getResults', {manager, settings: {throwErr, removeDuplicateTests}})
|
|
@@ -77,6 +80,8 @@ Cypress.Commands.add('eyesGetAllTestResults', () => {
|
|
|
77
80
|
return
|
|
78
81
|
}
|
|
79
82
|
|
|
83
|
+
if (!isOpen) throw new EyesNotOpenError('eyesGetAllTestResults')
|
|
84
|
+
|
|
80
85
|
const summary = await getSummary()
|
|
81
86
|
const hasErrors = summary.results?.some(({result}) => result.error !== undefined && isNonVisualTestError(result))
|
|
82
87
|
if (hasErrors && !shouldCallAfterHook && notFailCypressAfterAllSpecs) {
|
|
@@ -162,12 +167,14 @@ Cypress.Commands.add('eyesOpen', function (args = {}) {
|
|
|
162
167
|
)
|
|
163
168
|
|
|
164
169
|
eyes = await socket.request('EyesManager.openEyes', {manager, target, config: openAndGlobalConfig})
|
|
170
|
+
isOpen = true
|
|
165
171
|
})
|
|
166
172
|
})
|
|
167
173
|
|
|
168
|
-
Cypress.Commands.add('eyesCheckWindow', (args = {}) =>
|
|
169
|
-
cy.then({timeout: 86400000}, () => {
|
|
174
|
+
Cypress.Commands.add('eyesCheckWindow', (args = {}) => {
|
|
175
|
+
return cy.then({timeout: 86400000}, () => {
|
|
170
176
|
if (isCurrentTestDisabled) return
|
|
177
|
+
if (!isOpen) throw new EyesNotOpenError('eyesCheckWindow')
|
|
171
178
|
|
|
172
179
|
Cypress.log({name: 'Eyes: check window'})
|
|
173
180
|
|
|
@@ -179,12 +186,13 @@ Cypress.Commands.add('eyesCheckWindow', (args = {}) =>
|
|
|
179
186
|
target,
|
|
180
187
|
config: openAndGlobalConfig,
|
|
181
188
|
})
|
|
182
|
-
})
|
|
183
|
-
)
|
|
189
|
+
})
|
|
190
|
+
})
|
|
184
191
|
|
|
185
192
|
Cypress.Commands.add('eyesClose', () => {
|
|
186
193
|
return cy.then({timeout: 86400000}, () => {
|
|
187
194
|
if (isCurrentTestDisabled) return
|
|
195
|
+
if (!isOpen) throw new EyesNotOpenError('eyesClose')
|
|
188
196
|
|
|
189
197
|
Cypress.log({name: 'Eyes: close'})
|
|
190
198
|
if (isCurrentTestDisabled) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export class EyesError extends Error {}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {EyesError} from './EyesError'
|
|
2
|
+
|
|
3
|
+
export class EyesNotOpenError extends EyesError {
|
|
4
|
+
constructor(methodName) {
|
|
5
|
+
const message = `Cannot perform ${methodName} because the Eyes instance is not opened. Please ensure you call \`eyes.open()\` with valid parameters before invoking this method.
|
|
6
|
+
|
|
7
|
+
Check the following:
|
|
8
|
+
- Verify that \`eyes.open()\` is called in your test flow.
|
|
9
|
+
- Ensure the \`open\` call includes required parameters (e.g., appName, testName).
|
|
10
|
+
|
|
11
|
+
For more details, refer to the Applitools SDK documentation.`
|
|
12
|
+
super(message)
|
|
13
|
+
}
|
|
14
|
+
}
|