Skip to content

Commit 051a29f

Browse files
committed
add step on wslg config
1 parent 50994f0 commit 051a29f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/core/testing/usage-instructions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ macOS uses [XQuartz](https://www.xquartz.org) to use XServer on macOS.
7373

7474
Windows has a native XServer called [WSLg](https://github.com/microsoft/wslg#readme) that is included as part of the [Windows Subsystem for Linux (WSL)](https://learn.microsoft.com/en-us/windows/wsl/about). See [Docker and Windows Development](#docker-and-windows-development) for information on how to ensure both WSL and WSLg are installed. Once completed, follow the steps below to configure headed tests to use XServer.
7575

76+
> [!NOTE]
77+
> The following steps should be done in WSL, not PowerShell. Running the commands in PowerShell may result in extra hidden characters being added.
78+
7679
1. In the `core` directory run `echo :0 > docker-display.txt`. This information is used to set the `DISPLAY` environment variable which tells Playwright how to render a headed UI from the Docker container.
7780
2. In the `core` directory run `echo /tmp/.X11-unix:/tmp/.X11-unix > docker-display-volume.txt`. This information is used to make XServer available inside of the Docker container.
7881

0 commit comments

Comments
 (0)