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
Then in the actual test file (I am using mocha), I am calling browser.checkViewport(). This does indeed produce a "diff" screenshot in the diffName returned path as provided in the service initialisation, but I was hoping that it also checks the actual difference between the 2 pictures (current and reference one). I even stretched it a bit further and tried to assert this call by calling chai.assert(browser.checkViewport(), 'Screenshot diff passes the threshold'), but I don't get any different output! Is this meant to be the case that the diff screenshot is only produced and that the the actual comparison between the reference screenshot and the current one is not happening at all? If so, can you advise towards the actual comparison method that you use in this case? Otherwise please do let me know of how I should proceed to fix this...
Regards,
Ioannis
The text was updated successfully, but these errors were encountered:
IoannisPetridis
changed the title
LocalCompare doesn't compare but rather only saves the diff screenshot
LocalCompare doesn't compare rather only saves the diff screenshot
Sep 1, 2021
Hello,
I am initialising the service like so:
I already have a reference screenshot to compare with in the correct path supplied above by
Then in the actual test file (I am using mocha), I am calling
browser.checkViewport()
. This does indeed produce a "diff" screenshot in thediffName
returned path as provided in the service initialisation, but I was hoping that it also checks the actual difference between the 2 pictures (current and reference one). I even stretched it a bit further and tried to assert this call by callingchai.assert(browser.checkViewport(), 'Screenshot diff passes the threshold')
, but I don't get any different output! Is this meant to be the case that the diff screenshot is only produced and that the the actual comparison between the reference screenshot and the current one is not happening at all? If so, can you advise towards the actual comparison method that you use in this case? Otherwise please do let me know of how I should proceed to fix this...Regards,
Ioannis
The text was updated successfully, but these errors were encountered: