Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Latest commit

 

History

History
37 lines (24 loc) · 1.17 KB

File metadata and controls

37 lines (24 loc) · 1.17 KB

VisualReview-protractor example project

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.