Regression testing with backstopjs.
For running these tests you need chrome headless installed.
default configuration:
- this directory is meant to be the place to setup your tests and to have a place for your reference screenshots.
- test results are placed in a /project/tmp/reports/... folder
- the reports are generated inside public/reports/backstop/html
Use following npm scripts for your test workflow:
yarn visual-reference
generates new reference screenshots with current configurationyarn visual-test
runs the tests, compares the results against the reference screenshots and generates a report underpublic/reports/backstop/html/
yarn visual-approve
updates the references with results from last test