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 installInstall selenium server used by protractor:
node node_modules/protractor/bin/webdriver-manager updateStart 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.jsTo 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.