docs: update README for playwright tests
This commit is contained in:
parent
eb45bd7c66
commit
d1b81e55eb
18
README.md
18
README.md
|
@ -218,15 +218,27 @@ Frontend tests are done via Cypress. There're 2 different type of tests:
|
||||||
|
|
||||||
#### Run Vue Tests
|
#### Run Vue Tests
|
||||||
|
|
||||||
|
> :warning: All commands below must be run from the `./playwright` directory.
|
||||||
|
|
||||||
|
Run once to install dependencies on your system:
|
||||||
|
```
|
||||||
|
npm install
|
||||||
|
npx playwright install --with-deps
|
||||||
|
```
|
||||||
|
|
||||||
To run the tests headlessly (command line mode):
|
To run the tests headlessly (command line mode):
|
||||||
```sh
|
```sh
|
||||||
yarn cypress
|
npm test
|
||||||
```
|
```
|
||||||
To run the tests visually **(CANNOT run in docker)**:
|
To run the tests visually **(CANNOT run in docker)**:
|
||||||
```sh
|
```sh
|
||||||
yarn cypress:open
|
npm run test:visual
|
||||||
|
```
|
||||||
|
|
||||||
|
To run the tests in debug mode **(CANNOT run in docker)**:
|
||||||
|
```sh
|
||||||
|
npm run test:debug
|
||||||
```
|
```
|
||||||
> It can take a few seconds before the tests start or the GUI opens.
|
|
||||||
|
|
||||||
#### Run Legacy Views Tests
|
#### Run Legacy Views Tests
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue