You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmck
changed the title
Perform visual regression upon a page slice rather than whole-page
Perform visual regression upon a page elements rather than arbitrary slices of the page
Jul 23, 2014
Screenshot api cant. It can take screenshots, but can not find out coordinates for DOM nodes. Automate may be used for that.
Instead of doing regression testing across different browsers, it would be better done across screenshots from same browser. Eg IE7 yesterday vs today. Across browser does not scale at all as IE6 and iPhone 5 are going to render the same page very drastically differently, no matter what (eg just because lets say browser dimensions are different).
No. User have to compile a list of nodes/css selectors they are interested in.
Currently with the option --phantomCSS we split the webpage screenshot into blocks of arbitrary size and perform a visual regression test against those, however this is not robust. See https://github.com/Huddle/PhantomCSS#best-practices.
https://github.com/Huddle/PhantomCSS#full-page-screenshots-are-a-bad-idea
Ideally we want to compare small sections of a page. Logically it makes sense to select these sections, or 'slices' by CSS selector.
Proposed approach:
Questions to address:
The text was updated successfully, but these errors were encountered: