Sample automated-visual-testing project with chrome. This is no different to https://github.com/garris/BackstopJS but with chromePath
Add test cases in tests folder, see sample1.js & sample2.js as an example.
Pre-condition: Change 'chromePath' in config.js to chrome executable in your system or working directory
Steps:
- Go to cloned folder and do 'npm i' - This will install all required dependencies
- Run ./generateRefs.sh - To generate reference images
- Run ./test.sh - To test against generated reference images
- See results in backstop_data/html/index.html
P.S: If you are using Amazon Linux, you may use headless_shell for chrome from https://github.com/kiran-redhat/serverless-chrome/blob/master/chrome/chrome-headless-lambda-linux-x64.tar.gz