- Go to the right e2e file and add a test with specific name.
- create the test with minimal overhead (fewer locators, fewer API calls, etc).
- download the Playwright Test for VSCode extension.
- You will see a small green play button near the test you created or want to run.
- If the test failed you need to debug it.
- Go to the fixtures file and remove the
--headless=new
from args (this will run the test on a browser on your computer), you can also uncomment theslowMo
for seeing each step. - Run in your terminal
yarn e2e:debug
. It will open a Playwright modal with a browser so you can see and debug each step. - Fix the problems and run also in headless mode (undo step 4)
Ask around, and check the Playwright docs. Found an issue? Did we miss a case? You're welcome to open an issue or talk with us on Discord.