This PR adds jest-image-snapshot and puppeteer to automatically generate screenshots of different sections of the application and compare them using jest, it also disables the animations of a few elements if the browser is being controlled by puppeteer.
It's still WIP because it fails on CI even though it passes locally, the issue is that generated screenshots on macOS will fail as CI uses Ubuntu, the recommendation is that we generate the images on a docker container (see americanexpress/jest-image-snapshot#177) which needs to be implemented.
Test Plan
yarn test should pass locally and in CI.
Checklist
[x] I tested this thoroughly
[ ] I added the documentation in README.md (if needed)
[x] Generate screenshots in a docker container to make sure they match with CI's
Summary
Kindafixes #53.This PR adds jest-image-snapshot and puppeteer to automatically generate screenshots of different sections of the application and compare them using jest, it also disables the animations of a few elements if the browser is being controlled by puppeteer.
It's still WIP because it fails on CI even though it passes locally, the issue is that generated screenshots on macOS will fail as CI uses Ubuntu, the recommendation is that we generate the images on a docker container (see americanexpress/jest-image-snapshot#177) which needs to be implemented.
Test Plan
yarn test
should pass locally and in CI.Checklist
README.md
(if needed)