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