HuddleEng / PhantomFlow

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

In which method to compare two pictures? #55

Closed MarvinLiuMing closed 7 years ago

MarvinLiuMing commented 7 years ago

I cannot find it.

jamescryer commented 7 years ago

PhantomCSS has a method to compare two images. See https://github.com/Huddle/PhantomCSS#compare-the-images-when-and-how-you-want

phantomcss.compareExplicit(['/dialog.diff.png', '/header.diff.png']);

Phantomflow just defines the structured DSL and generates the visualisation for the tests.

MarvinLiuMing commented 7 years ago

@jamescryer thanks a lot