Playwright Setup
Pre-requisites
- Install Node.js
- Visual Studio Code
- GitHub Desktop (Really handy if you don’t want to deal with direct CLI/terminal with Git, especially when you are starting off)
Installation
- Open this directory in VS Code or terminal where you want to manage the project
- Follow the fresh installation steps from Playwright documentation - or do it directly from VS Code.
Folder structure
Running tests
You read more about running tests in Playwright documentation.
Recommended VS Code extensions
- Playwright Test for VSCode - Run Playwright Test tests in Visual Studio Code.
- Trailing Spaces - Highlight trailing spaces and delete them in a flash!
Syncing with GitHub
Syncing (and signing in) with your GitHub is a really useful way to not have to remember your local setup - and not worry as much about setting up on a new system.
Read more about it Settings Sync.