Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 920 Bytes

README.md

File metadata and controls

24 lines (14 loc) · 920 Bytes

Installation

nvm use && npm ci

Set LFS filter for local development repository

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.

Usage

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