docs(test-runners): improve slowmo param for python (#22669)

This commit is contained in:
Doug Harris 2023-04-27 04:38:57 -04:00 committed by GitHub
parent 13061a9bba
commit bbf8d33113
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ addopts = --headed --browser firefox
- `--headed`: Run tests in headed mode (default: headless). - `--headed`: Run tests in headed mode (default: headless).
- `--browser`: Run tests in a different browser `chromium`, `firefox`, or `webkit`. It can be specified multiple times (default: `chromium`). - `--browser`: Run tests in a different browser `chromium`, `firefox`, or `webkit`. It can be specified multiple times (default: `chromium`).
- `--browser-channel` [Browser channel](./browsers.md) to be used. - `--browser-channel` [Browser channel](./browsers.md) to be used.
- `--slowmo` Run tests with slow mo. - `--slowmo` Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on (default: 0).
- `--device` [Device](./emulation.md) to be emulated. - `--device` [Device](./emulation.md) to be emulated.
- `--output` Directory for artifacts produced by tests (default: `test-results`). - `--output` Directory for artifacts produced by tests (default: `test-results`).
- `--tracing` Whether to record a [trace](./trace-viewer.md) for each test. `on`, `off`, or `retain-on-failure` (default: `off`). - `--tracing` Whether to record a [trace](./trace-viewer.md) for each test. `on`, `off`, or `retain-on-failure` (default: `off`).
@ -99,6 +99,8 @@ Run tests with slow mo with the `--slowmo` argument.
pytest --slowmo 100 pytest --slowmo 100
``` ```
Slows down Playwright operations by 100 milliseconds.
### Skip test by browser ### Skip test by browser
```py ```py