This is all based on https://leanpub.com/visual-regression-testing-and-webdriverio-guide/read
- Install node.js:
- Install GraphicsMagick
- On Mac, using homebrew
$ brew install graphicsmagick
- On Windows,
http://www.graphicsmagick.org/download.html
- On Linux,
sudo yum install GraphicsMagick
-
Run
npm install
-
Install Selenium server locally:
./node_modules/.bin/selenium-standalone install
-
Start your server with: -
./node_modules/.bin/selenium-standalone start
-
Write your tests in javascript
- (look at
origins.js
,login.js
,tests.js
in root of project folder)
- Run:
node origins.js
- This assumes you have a local version of the Explore page at http://localhost/explore
- To see an assertion pick up an error, make a visual change to the
<head>
section on that page and re-run the test.