Testing Angular Material Sidenav Animation problem
- Run in console
npm i
- Run in console
npm start
- Run in console
npm run cypress-test
- Test
animations.spec.js
file;
Notice that each test generates 2 files:
test-open-sidenav-screenshot({number}).png
: This one is generated bycy.snapshot
and if you compare with other files, might hape a small diff;test-open-sidenav.diff.png
: This one is generated bycy.matchImageSnapshot
, that gets the diff between two images (the current screenshot of the test and the saved one)