A comprehensive end-to-end testing framework built with Playwright and TypeScript for robust web application testing.
git clone git@github.com:manojkumarthakur/PlaywrightTypeScript.git
cd PlaywrightTypeScriptnpm installnpx playwright installnpx playwright testnpx playwright test examplenpx playwright test --uinpx playwright test --project=chromiumnpx playwright test --debugnpx playwright show-reportnpm run script-nameGenerate Playwright tests automatically by recording browser actions:
npx playwright codegenTo create a new Playwright project from scratch:
npm init playwright@latestAnd check out the following files:
- ./uitest/example.spec.ts - Example end-to-end test
- ./tests-examples/demo-todo-app.spec.ts - Demo Todo App end-to-end tests
- ./playwright.config.ts - Playwright Test configuration
| Command | Description |
|---|---|
npx playwright test |
Run all end-to-end tests |
npx playwright test --ui |
Launch interactive UI mode |
npx playwright test --project=chromium |
Test on Desktop Chrome only |
npx playwright test example |
Run specific test file |
npx playwright test --debug |
Debug mode with step-through |
npx playwright codegen |
Auto-generate tests with Codegen |
npx playwright show-report |
View HTML test report |
Visit the official Playwright Documentation for comprehensive guides and API references.
- Integrate Allure Report for enhanced test reporting
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.
Happy Testing! 🎭✨