@applitools/eyes-cypress 3.25.2 → 3.25.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 +8 -1
- package/package.json +2 -2
- package/src/browser/eyesOpenMapping.js +4 -3
- package/src/plugin/hooks.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,10 +3,17 @@
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
|
|
7
|
+
## 3.25.3 - 2022/3/29
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
### Bug fixes
|
|
11
|
+
- consider batchId from config file and environments variable when closing batch
|
|
12
|
+
- Fix config file parameters (e.g. `browser`) not being passed
|
|
13
|
+
|
|
6
14
|
## 3.25.2 - 2022/3/23
|
|
7
15
|
|
|
8
16
|
### Features
|
|
9
|
-
- internal tests updates
|
|
10
17
|
### Bug fixes
|
|
11
18
|
- fix Cypress Documentation inaccuracies
|
|
12
19
|
- 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.3",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"bin": {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@applitools/scripts": "1.1.0",
|
|
64
64
|
"@applitools/sdk-coverage-tests": "^2.3.18",
|
|
65
|
-
"@applitools/sdk-release-kit": "1.
|
|
65
|
+
"@applitools/sdk-release-kit": "1.2.1",
|
|
66
66
|
"@applitools/snaptdout": "1.0.1",
|
|
67
67
|
"@applitools/test-server": "1.0.8",
|
|
68
68
|
"@applitools/test-utils": "1.1.5",
|
|
@@ -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,
|