nvm use && npm ci
After repository is cloned, it's preferred to setup LFS filter for screenshots folder. It can be done once with following line:
cypress/snapshots/** filter=lfs diff=lfs merge=lfs -text
After that following line should be executed to get all existing screenshots from repository:
git lfs pull
Every following git
pull/push should work properly with LFS integration, as long .gitattributes
is in local repository.
Run debugging GUI.
npx cypress open
Update reference images on local environment.
docker run -it -v $PWD:/e2e -w /e2e cypress/included:9.2.1 --spec cypress/integration/*.spec.js --browser chrome --env updateSnapshots=true
docker run -it -v $PWD:/e2e -w /e2e cypress/included:9.2.1 --spec cypress/integration/*.spec.js --browser firefox --env updateSnapshots=true