Initialize Playwright
Set up Playwright tests for your repo:
- At the root of your repository run
npm init playwright@latest- Select a language (
TypeScriptwas used for the example repo but either will work) - Select a folder to place your tests in (the folder
testswas used for the example repo) - Type
yto add a github workflow
- Select a language (
- Inside
package.jsonadd the script"test": "playwright test" - Write test suites and place them in your test folder