This repository showcases automated UI and API testing using Playwright, following QA best practices.
- End-to-end UI tests with Page Object Model
- Negative login scenarios + validation
- Mock API testing with json-server
- Cross-browser execution (Chromium, Firefox, WebKit)
- CI/CD pipeline with GitHub Actions
tests/ # Test files pages/ # Page Object Models mock-api/ # Local mock API database playwright.config.ts # Playwright configuration package.json # Dependencies & scripts
- Playwright (UI + API)
- TypeScript / Node.js
- json-server (mock API)
- GitHub Actions (CI)
npm install
npx playwright install
npm run start:api
npx playwright testnpx playwright show-reportTag What it runs @login - Login UI tests @negative - Negative scenarios @api - API tests @smoke - Checkout happy path
npx playwright test -g @loginThis photo encompasses a few tests within this repository