@applitools/visual-grid-cli-utils 1.21.37 → 1.21.38
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/package.json +2 -2
- package/src/compare.js +6 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/visual-grid-cli-utils",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.38",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/visual-grid-cli-utils.js",
|
|
6
6
|
"engines": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@applitools/dom-snapshot": "^4.5.7",
|
|
40
|
-
"@applitools/eyes-images": "
|
|
40
|
+
"@applitools/eyes-images": "4.21.0",
|
|
41
41
|
"@applitools/functional-commons": "^1.6.0",
|
|
42
42
|
"@applitools/http-commons": "^2.4.3",
|
|
43
43
|
"@applitools/screenshot-stitching-client": "^8.0.15",
|
package/src/compare.js
CHANGED
|
@@ -13,10 +13,10 @@ async function main(args) {
|
|
|
13
13
|
runRerender(args.browser1.browser),
|
|
14
14
|
runRerender(args.browser2.browser),
|
|
15
15
|
])
|
|
16
|
-
await compareWithEyes(results)
|
|
16
|
+
await compareWithEyes(results, args)
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
async function compareWithEyes(rerenderResults) {
|
|
19
|
+
async function compareWithEyes(rerenderResults, args) {
|
|
20
20
|
const eyes = new Eyes()
|
|
21
21
|
let batchUrl
|
|
22
22
|
try {
|
|
@@ -32,7 +32,10 @@ async function compareWithEyes(rerenderResults) {
|
|
|
32
32
|
const uuid = randomUUID()
|
|
33
33
|
let i = 0
|
|
34
34
|
for (const result of rerenderResults) {
|
|
35
|
-
await eyes.open('VG-CLI compare', `Compare browsers ${uuid}
|
|
35
|
+
await eyes.open('VG-CLI compare', `Compare browsers ${uuid}`, {
|
|
36
|
+
width: args.width || 800,
|
|
37
|
+
height: args.height || 600,
|
|
38
|
+
})
|
|
36
39
|
const {browser: name, image: file} = result
|
|
37
40
|
const resp = await eyes.check(name, Target.image(file))
|
|
38
41
|
batchUrl = batchUrl || eyes.getRunningSession().getUrl()
|