A minimal example to test one file example.html
, that has javascript on it.
- You have some static files you want to test.
- Capyara start to run the two tests we have in
example_spec.rb
- Selenium executes all the hardpart as JS
- Percy takes screenshots and sends it to percy.io for visual regression.
##prerequisite Ruby installed, I needed version 2.4.
execute setup.sh
Set your PERCY_TOKEN and PERCY_PROJECT variables so their are part of your env.var.
e.g
export PERCY_TOKEN="....."
export PERCY_PROJECT="....."
execute run.sh
now the test should execute and you should be uploading 3 visual diffs to percy.io