You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BREAKING CHANGE: different resolution doesn't fail test immediately - img diff is being done
closes#94
Signed-off-by: Jakub Freisler <[email protected]>
errorMsg=`Images size mismatch - new screenshot is ${rawImgNew.width}px by ${rawImgNew.height}px while old one is ${rawImgOld.width}px by ${rawImgOld.height} (width x height).`;
168
-
}elseif(imgDiff>cfg.maxDiffThreshold){
169
-
constroundedImgDiff=Math.ceil(imgDiff*1000)/1000;
170
-
errorMsg=`Image diff factor (${roundedImgDiff}) is bigger than maximum threshold option ${cfg.maxDiffThreshold}`;
177
+
messages.push(`Warning: Images size mismatch - new screenshot is ${rawImgNew.width}px by ${rawImgNew.height}px while old one is ${rawImgOld.width}px by ${rawImgOld.height} (width x height).`);
178
+
}
179
+
180
+
if(imgDiff>cfg.maxDiffThreshold){
181
+
messages.unshift(`Image diff factor (${round(imgDiff)}) is bigger than maximum threshold option ${cfg.maxDiffThreshold}.`);
0 commit comments