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

test: ignore colors in e2e #201

Merged
merged 1 commit into from
Dec 19, 2017
Merged

Conversation

oroce
Copy link
Member

@oroce oroce commented Dec 19, 2017

apparently wdio does support ignoring colors when comparing images.

Under the hood wdio-visual-regression-service uses node-resemble-js to compare images which supports ignoring images.
Even they have support for it: https://github.com/zinserjan/wdio-visual-regression-service/blob/ddf272edddf46fbde4b01e86804c1449ba580123/src/methods/LocalCompare.js#L71
But the property is missing from the constructor so I forked and I added it. (zinserjan/wdio-visual-regression-service#45)

you can pass colors or antialiasing and that will be ignored.

@molnosikristof molnosikristof merged commit 5d3b482 into master Dec 19, 2017
@molnosikristof molnosikristof deleted the test/ignore-colors-in-e2e branch December 19, 2017 14:42
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

Successfully merging this pull request may close these issues.

2 participants