This commit is contained in:
Max Schmitt 2024-06-13 19:54:03 +02:00
parent e0588b7d85
commit ba112d1e59
3 changed files with 6 additions and 2 deletions

View file

@ -628,7 +628,7 @@ DEBUG=pw:browser dotnet test
## Running headed
By default, Playwright launches browsers in headless mode. See in our [Running tests](./running-tests.md) guide how to run tests in headed mode.
By default, Playwright launches browsers in headless mode. See in our [Running tests](./running-tests.md#run-tests-in-headed-mode) guide how to run tests in headed mode.
On Linux agents, headed execution requires [Xvfb](https://en.wikipedia.org/wiki/Xvfb) to be installed. Our [Docker image](./docker.md) and GitHub Action have Xvfb pre-installed. To run browsers in headed mode with Xvfb, add `xvfb-run` before the actual command.

View file

@ -22,7 +22,7 @@ Use the following command to run all tests.
dotnet test
```
### Run your tests in headed mode
### Run tests in headed mode
Use the following command to run your tests in headed mode opening a browser window for each test.

View file

@ -85,6 +85,10 @@ See [here](./test-runners.md) for further details on how to run tests in paralle
See experimental [JUnit integration](./junit.md) to automatically initialize Playwright objects and more.
### Run tests in headed mode
If you prefer, you can run your tests in headed mode by using the `launch(new BrowserType.LaunchOptions().setHeadless(false))` option.
## What's Next
- [Debugging tests](./debug.md)