The place for you to learn and try about Playwright
This project use vite-react-ts-boilerplate to initial project
- https://playwright.dev/docs/getting-started-vscode
- https://playwright.dev/docs/best-practices
- https://playwright.dev/docs/test-cli
- https://playwright.dev/docs/cli
- https://playwright.dev/docs/test-assertions
- https://playwright.dev/docs/locators
- https://playwright.dev/docs/trace-viewer-intro
- https://playwright.dev/docs/trace-viewer
- https://playwright.dev/docs/auth
- https://playwright.dev/docs/mock
- https://playwright.dev/docs/mock-browser-apis
This project use mswjs/msw as mocking server API and use mswjs/data as data modeling
THis project use fakerjs as data generate
pnpm install
for install all dependencies- Duplicate file
.env.example
and rename to.env.local
- npx msw init public/ --save
- Open your terminal then run
pnpm test
, all test should pass properly - Create directory
tests
at root directory - Update
.env.local
, changePLAYWRIGHT_TEST_DIR
value to./tests
- Write your test in
tests
directory - You can follow topic section
Challenges
to learn how to test website with playwright
- Coming soon...