@applitools/eyes-cypress 3.25.2 → 3.25.5
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
|
@@ -3,10 +3,32 @@
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## 3.25.5 - 2022/4/19
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
### Bug fixes
|
|
12
|
+
- fix beforeCaptureScreenshot hook not being respected
|
|
13
|
+
|
|
14
|
+
## 3.25.4 - 2022/4/15
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
### Bug fixes
|
|
18
|
+
- `extractText` now supports regions that don't use hints while using `x`/`y` coordinates
|
|
19
|
+
- add 'waitBeforeCapture' as an available type for 'Eyes.Open' and 'Eyes.Check' (for Typescript)
|
|
20
|
+
- Support data urls in iframes
|
|
21
|
+
|
|
22
|
+
## 3.25.3 - 2022/3/29
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
### Bug fixes
|
|
26
|
+
- consider batchId from config file and environments variable when closing batch
|
|
27
|
+
- Fix config file parameters (e.g. `browser`) not being passed
|
|
28
|
+
|
|
6
29
|
## 3.25.2 - 2022/3/23
|
|
7
30
|
|
|
8
31
|
### Features
|
|
9
|
-
- internal tests updates
|
|
10
32
|
### Bug fixes
|
|
11
33
|
- fix Cypress Documentation inaccuracies
|
|
12
34
|
- Support batchId, batchName and batchSequenceName from the config file, eyesOpen and environment variables
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-cypress",
|
|
3
|
-
"version": "3.25.
|
|
3
|
+
"version": "3.25.5",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"bin": {
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@applitools/dom-snapshot": "4.5.12",
|
|
49
|
-
"@applitools/eyes-api": "1.
|
|
50
|
-
"@applitools/eyes-universal": "2.
|
|
49
|
+
"@applitools/eyes-api": "1.3.0",
|
|
50
|
+
"@applitools/eyes-universal": "2.2.1",
|
|
51
51
|
"@applitools/functional-commons": "1.6.0",
|
|
52
|
-
"@applitools/logger": "1.0.
|
|
53
|
-
"@applitools/visual-grid-client": "15.
|
|
52
|
+
"@applitools/logger": "1.0.12",
|
|
53
|
+
"@applitools/visual-grid-client": "15.12.2",
|
|
54
54
|
"body-parser": "1.19.0",
|
|
55
55
|
"chalk": "3.0.0",
|
|
56
56
|
"cors": "2.8.5",
|
|
@@ -60,14 +60,14 @@
|
|
|
60
60
|
"ws": "8.5.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
+
"@applitools/bongo": "^2.0.3",
|
|
63
64
|
"@applitools/scripts": "1.1.0",
|
|
64
65
|
"@applitools/sdk-coverage-tests": "^2.3.18",
|
|
65
|
-
"@applitools/sdk-release-kit": "1.0.3",
|
|
66
66
|
"@applitools/snaptdout": "1.0.1",
|
|
67
67
|
"@applitools/test-server": "1.0.8",
|
|
68
|
-
"@applitools/test-utils": "1.1
|
|
69
|
-
"@applitools/types": "^1.
|
|
70
|
-
"@applitools/utils": "1.2.
|
|
68
|
+
"@applitools/test-utils": "1.3.1",
|
|
69
|
+
"@applitools/types": "^1.3.1",
|
|
70
|
+
"@applitools/utils": "1.2.14",
|
|
71
71
|
"@types/node": "17.0.13",
|
|
72
72
|
"@types/ws": "^8.2.2",
|
|
73
73
|
"@typescript-eslint/eslint-plugin": "^5.10.2",
|
|
@@ -5,7 +5,7 @@ function eyesCheckMapValues({args}) {
|
|
|
5
5
|
function toCheckWindowConfiguration(config = {}) {
|
|
6
6
|
const mappedValues = [
|
|
7
7
|
'tag',
|
|
8
|
-
'
|
|
8
|
+
'scriptHooks',
|
|
9
9
|
'ignore',
|
|
10
10
|
'floating',
|
|
11
11
|
'strict',
|
|
@@ -20,7 +20,7 @@ function toCheckWindowConfiguration(config = {}) {
|
|
|
20
20
|
let shadowDomSettings = {};
|
|
21
21
|
const checkSettings = {
|
|
22
22
|
name: config.tag,
|
|
23
|
-
|
|
23
|
+
hooks: config.scriptHooks,
|
|
24
24
|
ignoreRegions: config.ignore,
|
|
25
25
|
floatingRegions: convertFloatingRegion(config.floating),
|
|
26
26
|
strictRegions: config.strict,
|
|
@@ -57,12 +57,13 @@ function eyesOpenMapValues({args, appliConfFile, testName, shouldUseBrowserHooks
|
|
|
57
57
|
ignoreDisplacements: args.ignoreDisplacements || appliConfFile.ignoreDisplacements,
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
+
const appliConfFileCopy = {...appliConfFile};
|
|
60
61
|
for (const val of mappedValues) {
|
|
61
62
|
if (args.hasOwnProperty(val)) {
|
|
62
63
|
delete args[val];
|
|
63
64
|
}
|
|
64
|
-
if (
|
|
65
|
-
delete
|
|
65
|
+
if (appliConfFileCopy.hasOwnProperty(val)) {
|
|
66
|
+
delete appliConfFileCopy[val];
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
|
|
@@ -75,7 +76,7 @@ function eyesOpenMapValues({args, appliConfFile, testName, shouldUseBrowserHooks
|
|
|
75
76
|
|
|
76
77
|
return Object.assign(
|
|
77
78
|
{testName, dontCloseBatches: !shouldUseBrowserHooks},
|
|
78
|
-
|
|
79
|
+
appliConfFileCopy,
|
|
79
80
|
mappedArgs,
|
|
80
81
|
);
|
|
81
82
|
}
|
package/src/plugin/hooks.js
CHANGED
|
@@ -26,7 +26,7 @@ function makeGlobalRunHooks({closeManager, closeBatches, closeUniversalServer})
|
|
|
26
26
|
}
|
|
27
27
|
if (!config.appliConfFile.dontCloseBatches) {
|
|
28
28
|
await closeBatches({
|
|
29
|
-
batchIds: [config.appliConfFile.batch.id],
|
|
29
|
+
batchIds: [config.appliConfFile.batchId || config.appliConfFile.batch.id],
|
|
30
30
|
serverUrl: config.appliConfFile.serverUrl,
|
|
31
31
|
proxy: config.appliConfFile.proxy,
|
|
32
32
|
apiKey: config.appliConfFile.apiKey,
|