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
{{ message }}
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.
varassertResult=function(err,res){assert.ifError(err);Object.keys(res).forEach(function(key){res[key].forEach(function(value){if(!value.isWithinMisMatchTolerance){console.log(res);thrownewError('Error in baseline image');}})});};
The text was updated successfully, but these errors were encountered:
I'm looking for something like this as well. I'd like tests to fail if it's not within tolerance, but I also don't want to write the same assertions again and again.
I don't think this should be part of webdrivercss. Webdrivercss's job is to be a plugin to webdriverio to capture screenshots. Having assertion helpers seems like another package that would provide this value.
I happen to be of the belief that webdrivercss should have nothing to do with testing itself and thus shouldn't even have a tolerance setting. I think webdrivercss should purely take screenshots and then there should be other packages on top of webdrivercss that adds the other testing functionality / uploading to aplitools, api, etc. But that is probably a bigger conversation.
Something along this:
The text was updated successfully, but these errors were encountered: