Example on how to use the test visual regression using the VisualReview protractor API. This demo opens a few pages and takes a few screenshots so changes to these pages can be evaluated over time.
First install the dependencies:
npm install
Install selenium server used by protractor:
node node_modules/protractor/bin/webdriver-manager update
Start the VisualReview server by downloading the latest release, extracting it and run ./start.sh
.
Now send the screenshots for the end to end test by running:
node_modules/.bin/protractor protractor.js
To see the screenshots, open the VisualReview web app (http://localhost:7000).
Navigate to myProject
-> mySuite
and open the latest run.
Try changing the spec.js
test a bit and run the test again to view and evaluate changes between runs.