-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(SPV-1105): add readme for visual tests
- Loading branch information
1 parent
b2583b8
commit 5820f58
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Running Playwright Tests | ||
|
||
> **Note:** We run visual tests inside docker container because we need to have screenshots from linux | ||
## Introduction | ||
|
||
This guide explains how to run visual tests in Playwright using npm scripts. The scripts we will cover are: | ||
|
||
- `test:visual`: runs visual tests. | ||
- `test:visual:update`: updates existing snapshots. | ||
|
||
## Setting Up the Environment | ||
|
||
Ensure you have docker | ||
|
||
## Docker files | ||
|
||
``` | ||
/app | ||
├── /playwright | ||
│ ├── Dockerfile | ||
│ └── docker-compose.yml | ||
└── ... | ||
``` | ||
|
||
## Run tests | ||
|
||
``` | ||
yarn tests:visual | ||
``` | ||
|
||
## Update image snapshots | ||
|
||
``` | ||
yarn tests:visual:update | ||
``` |