File tree Expand file tree Collapse file tree 1 file changed +18
-10
lines changed Expand file tree Collapse file tree 1 file changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,15 @@ Cypress.Commands.add(
36
36
title += ` #${ ++ nameCacheCounter [ title ] } ` ;
37
37
38
38
return cy
39
- . log ( "visual regression diff" )
40
39
. then ( ( ) =>
41
- cy . task ( TASK . getScreenshotPath , {
42
- title,
43
- specPath : Cypress . spec . relative ,
44
- } )
40
+ cy . task (
41
+ TASK . getScreenshotPath ,
42
+ {
43
+ title,
44
+ specPath : Cypress . spec . relative ,
45
+ } ,
46
+ { log : false }
47
+ )
45
48
)
46
49
. then ( ( screenshotPath ) => {
47
50
let imgPath : string ;
@@ -52,16 +55,21 @@ Cypress.Commands.add(
52
55
imgPath = props . path ;
53
56
options . screenshotConfig ?. onAfterScreenshot ?.( el , props ) ;
54
57
} ,
58
+ log : false ,
55
59
} )
56
60
. then ( ( ) => imgPath ) ;
57
61
} )
58
62
. then ( ( imgPath ) =>
59
63
cy
60
- . task ( TASK . compareImages , {
61
- imgNew : imgPath ,
62
- imgOld : imgPath . replace ( FILE_SUFFIX . actual , "" ) ,
63
- ...( options . diffConfig || { } ) ,
64
- } )
64
+ . task (
65
+ TASK . compareImages ,
66
+ {
67
+ imgNew : imgPath ,
68
+ imgOld : imgPath . replace ( FILE_SUFFIX . actual , "" ) ,
69
+ ...( options . diffConfig || { } ) ,
70
+ } ,
71
+ { log : false }
72
+ )
65
73
. then ( ( res ) => ( {
66
74
res : res as null | {
67
75
error ?: boolean ;
You can’t perform that action at this time.
0 commit comments