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
misMatchTolerance Number
Overrides the global misMatchTolerance value for this command. Pass in a number between 0 and 100 that defines the degree of mismatch to consider two images as identical.
I can't seem to get this to actually work in Spectre - any advice on how to pass the value in my command?
browser.checkViewport({misMatchTolerance: 50});
seems to do nothing.
The text was updated successfully, but these errors were encountered:
I think you're right about misMatchTolerance not working for the Spectre commands. It looks like fuzzLevel is the primary driver for mismatch. The command submits the screenshot to Spectre with the given fuzz level and uses the diff amount that Spectre returns as the actual misMatchTolerance.
Would it work to tweak the README to mention that Spectre uses fuzzLevel while other methods use misMatchTolerance? I think that would clear up confusion and not require any code change 🙂
misMatchTolerance Number
Overrides the global misMatchTolerance value for this command. Pass in a number between 0 and 100 that defines the degree of mismatch to consider two images as identical.
I can't seem to get this to actually work in Spectre - any advice on how to pass the value in my command?
browser.checkViewport({misMatchTolerance: 50});
seems to do nothing.
The text was updated successfully, but these errors were encountered: