zinserjan / wdio-visual-regression-service

Visual regression service for WebdriverIO.
MIT License
102 stars 39 forks source link

How to ignore parts of viewport #91

Closed SeanHayes closed 5 years ago

SeanHayes commented 5 years ago

I used browser.checkDocument([{hide: ['img']}]); but my diffs still show image differences. How do I ignore images? Or better yet, is there a way to force animated .gif files to always render the first frame during screenshots?

pmerwin commented 5 years ago

Hmm yeah hide: is not working for me either, and it looks like exclude is not implemented.

SeanHayes commented 5 years ago

The docs needed to be updated: https://github.com/zinserjan/wdio-visual-regression-service/pull/92#pullrequestreview-205510429

pmerwin commented 5 years ago

https://github.com/zinserjan/webdriverio-example/blob/master/test/screenshot-test.js

this example helped me , needed to do hide: ['.support-chat']