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
* support playwright helper (#81)
* Default to config.prepareBaseImage if no param specified (#79)
* Update index.js
We are only downloading the base image if the `options` param explicitly includes the option `{prepareBaseImage: false}`. Otherwise, it will omit downloading the base file, even if the helper configuration includes the prepareBaseImage option.
This change allows us to default to the value in the config file if the method doesn't receive that param.
* Update index.js
* Fix bug - baseline and comparison images write mode (#75) (#76)
* Prepare for 1.9.3 release
Co-authored-by: Peter Nguyen Tr <[email protected]>
Co-authored-by: Carlos <[email protected]>
Co-authored-by: Shan <[email protected]>
`${actualImage}${err.code==='ENOENT' ? 'screenshot image does not exist' : 'is read-only'}`);
56
+
`${actualImage}${err.code==='ENOENT' ? 'screenshot image does not exist' :
57
+
'screenshot image has an access error'}`);
56
58
}
57
59
});
58
60
@@ -77,16 +79,16 @@ class ResembleHelper extends Helper {
77
79
if(!data.isSameDimensions){
78
80
letdimensions1=sizeOf(baseImage);
79
81
letdimensions2=sizeOf(actualImage);
80
-
reject(newError("The base image is of "+dimensions1.height+" X "+dimensions1.width+" and actual image is of "+dimensions2.height+" X "+dimensions2.width+". Please use images of same dimensions so as to avoid any unexpected results."));
82
+
reject(newError(`The base image is of ${dimensions1.height} X ${dimensions1.width}and actual image is of ${dimensions2.height} X ${dimensions2.width}. Please use images of same dimensions so as to avoid any unexpected results.`));
0 commit comments