https://github.com/thunder/admin-theme-testing
Visual regression testing for drupal admin themes
https://github.com/thunder/admin-theme-testing
Last synced: 3 days ago
JSON representation
Visual regression testing for drupal admin themes
- Host: GitHub
- URL: https://github.com/thunder/admin-theme-testing
- Owner: thunder
- Created: 2022-01-04T08:18:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-31T07:57:32.000Z (about 4 years ago)
- Last Synced: 2025-02-24T10:45:23.503Z (over 1 year ago)
- Language: JavaScript
- Size: 130 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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```