From ba112d1e590b63141a3bb8ac2de131bcf85c6a2c Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 13 Jun 2024 19:54:03 +0200 Subject: [PATCH] nit --- docs/src/ci.md | 2 +- docs/src/running-tests-csharp.md | 2 +- docs/src/running-tests-java.md | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/src/ci.md b/docs/src/ci.md index 600ab784d5..2556cbf241 100644 --- a/docs/src/ci.md +++ b/docs/src/ci.md @@ -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. diff --git a/docs/src/running-tests-csharp.md b/docs/src/running-tests-csharp.md index d366526f26..3f6a0f23e1 100644 --- a/docs/src/running-tests-csharp.md +++ b/docs/src/running-tests-csharp.md @@ -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. diff --git a/docs/src/running-tests-java.md b/docs/src/running-tests-java.md index 69943f5470..2ca2093a8a 100644 --- a/docs/src/running-tests-java.md +++ b/docs/src/running-tests-java.md @@ -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)