Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does the misMatchTolerance Number actually work? #95

Open
mandebooks opened this issue Apr 10, 2019 · 2 comments
Open

Does the misMatchTolerance Number actually work? #95

mandebooks opened this issue Apr 10, 2019 · 2 comments

Comments

@mandebooks
Copy link

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.

@greenyouse
Copy link

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.

@greenyouse
Copy link

greenyouse commented May 18, 2019

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 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants