docs: add video on running tests (#31066)

This commit is contained in:
Debbie O'Brien 2024-05-29 17:19:49 +02:00 committed by GitHub
parent a11a6d9874
commit 141c6a9c81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,8 +45,14 @@ The testing sidebar can be opened by clicking on the testing icon in the activit
You can run a single test by clicking the green triangle next to your test block to run your test. Playwright will run through each line of the test and when it finishes you will see a green tick next to your test block as well as the time it took to run the test.
<LiteYouTube
id="mQmcIBMsc38"
title="Getting Started with Playwright in VS Code"
/>
![run a single test](https://github.com/microsoft/playwright/assets/13063165/69dbccfc-4e9f-40e7-bcdf-7d5c5a11f988)
### Run tests and show browsers
You can also run your tests and show the browsers by selecting the option **Show Browsers** in the testing sidebar. Then when you click the green triangle to run your test the browser will open and you will visually see it run through your test. Leave this selected if you want browsers open for all your tests or uncheck it if you prefer your tests to run in headless mode with no browser open.