HuddleEng / PhantomFlow

Describe and visualise user flows through tests with PhantomJS
MIT License
682 stars 60 forks source link

config mismatchTolerance of phantomcss #28

Closed jacek213 closed 8 years ago

jacek213 commented 9 years ago

Hello,

How can I change the value of mismatchTolerance option belonging to phantomcss? I use grunt-phantomflow to be exact.

jamescryer commented 9 years ago

Its not currently supported. You can work around it by hard-coding the mismatchTolerance option here https://github.com/Huddle/PhantomFlow/blob/master/lib/phantomCSSAdaptor.js

I'll accept a PR that threads the value through from PhantomFlow/grunt-phantomflow

jacek213 commented 9 years ago

My current workaround is to create a file config.js in casper/include directory, containing:

phantomCSS.update({
    "mismatchTolerance": 5
});

I will think about the PR when I happen to have some free time.