process The risk of regression is higher with responsive layouts and complex applications CSS refactoring is necessary for long life projects Visual regression identification can often be difficult and subjective
SlimerJS instead of PhantomJS casperjs test demo/testsuite.js --engine=slimerjs - Use debugger; statements with Webkit remote console casperjs test demo/testsuite.js —remote-debugger-port=9000
step('Look at the page', look(1500)); }, "View in 990px": function(){ step('Look at the page', look(990)); }, "View in 440px": function(){ step('Look at the page', look(440)); } }); }); function look(w){ return function(){ casper.viewport(w, 768). thenOpen(url, function(){ casper.test.pass(w+'x768 page has loaded'); phantomCSS.screenshot('body'); }); }; }