VisualReview-protractor example project
July 17, 2015 ยท View on GitHub
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.
Prerequisites
Try it
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.
Run
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.