ratchagarn / playwright-training-ground

Training ground for learning Playwright

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Playwright Training Ground

The place for you to learn and try about Playwright

This project use vite-react-ts-boilerplate to initial project

Useful Link

API

This project use mswjs/msw as mocking server API and use mswjs/data as data modeling

Data Generate

THis project use fakerjs as data generate

Setup

  1. pnpm install for install all dependencies
  2. Duplicate file .env.example and rename to .env.local
  3. npx msw init public/ --save
  4. Open your terminal then run pnpm test, all test should pass properly
  5. Create directory tests at root directory
  6. Update .env.local, change PLAYWRIGHT_TEST_DIR value to ./tests
  7. Write your test in tests directory
  8. You can follow topic section Challenges to learn how to test website with playwright

Challenges

  • Coming soon...

About

Training ground for learning Playwright

License:Other


Languages

Language:TypeScript 98.4%Language:HTML 0.8%Language:JavaScript 0.5%Language:CSS 0.3%