Skip to content

kiran-redhat/automated-visual-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

automated-visual-testing

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:

  1. Go to cloned folder and do 'npm i' - This will install all required dependencies
  2. Run ./generateRefs.sh - To generate reference images
  3. Run ./test.sh - To test against generated reference images
  4. 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

About

Sample project - Automated visual testing with BackstopJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published