-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4b8f95
commit 5c3e3b1
Showing
6 changed files
with
31 additions
and
20 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,19 +1,26 @@ | ||
This directory contains the webapp tests, that use playwright. | ||
|
||
### Install deps | ||
### Install/update playwright | ||
|
||
Regularly update playwright to test on up to date browsers, and match the CI version. | ||
|
||
```sh | ||
npm install --save-dev @types/node @types/yauzl | ||
npm install -D @playwright/test@latest | ||
npx playwright install --with-deps | ||
``` | ||
|
||
### Recompute screenshots and downloaded exports | ||
### Install deps | ||
|
||
```sh | ||
UPDATE_EXPORTS=true npx playwright test --update-snapshots --project firefox | ||
npm install --save-dev @types/node @types/yauzl | ||
``` | ||
|
||
for a given test or test group | ||
### Recompute screenshots and downloaded exports | ||
|
||
`UPDATE_EXPORTS=true` is similar to playwright `--update-snapshots`, but for downloaded files | ||
|
||
```sh | ||
UPDATE_EXPORTS=true npx playwright procedure.spec.ts:449 files --update-snapshots --project firefox | ||
UPDATE_EXPORTS=true npx playwright test --update-snapshots | ||
UPDATE_EXPORTS=true npx playwright test --update-snapshots --project firefox | ||
UPDATE_EXPORTS=true npx playwright test procedure.spec.ts:449 --update-snapshots | ||
``` |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.