Magic mirror in my hand, tell me if my website will look ugly in production before deploying to production.
This is a wrapper around the wonderful Nightmare.js for:
Most important features:
Build status: Unix:
$ npm install mirror-mirror
var mirror = ;var runner = ;runner;runner;
var mirror = Mirror([NighmareOptions]);
Look at Nighmare.js options.
This is an object with the following structure:
||no||An array of nightmareJs actions to perform after the transformation and before the second screenshots. Look at the example below|
||no||An array of nightmareJs actions to perform before the first screenshots. Look at the example below|
||no||Default 3, is the concurrency of tests|
||no||Allows to specify cookies to be used for each request|
||no||When true, shows stuff in the console|
||no||Allows to specify headers to be used for each request|
||no||Default 3, number of retries after a failing session|
||yes||The path where to save the screenshots|
||yes||The css selector for the DOM tree you want to transform. It can be anything
||no||Default 20000, when the sessions is going to be restarted|
||yes||The transformation to apply to the selector. If
||yes||The urls to test. Key is used to generate screenshots file name so keep it simple and without spaces and stuff|
Where callback is going to have an error and/or a response with the results. If any of the requests fails, the callback will include both an error + the response with succeeding screenshot links.
Yes please. Open an issue first.