A scalable test automation framework built with Playwright, designed for cross-browser testing and end-to-end testing of modern web applications.
- Cross-browser testing: Run tests on Chromium, Firefox, and WebKit.
- Fast execution: Parallel test execution for faster feedback.
- Headless & Headed modes: Supports both modes for different testing scenarios
- Page Object Model: Organized and maintainable test structure.
- CI/CD Integration: Easily integrates with CI pipelines.
- Screenshots & Videos: Capture screenshots and videos of failed tests for debugging.
git clone https://github.com/mendonjr/playwright.git
cd playwright
npm install
npx playwright install
npx playwright test
/playwright-framework
├── /tests # Test cases
├── /pages # Page objects
├── /utils # Helpers
├── /config # Configuration files
├── /reports # Test reports
└── package.json # Dependencies & scripts
- Run all tests:
npx playwright test
- Run specific test:
npx playwright test tests/example.spec.ts
- Run tests in headed mode:
HEADLESS=false npx playwright test
- Run tests on a specific browser:
npx playwright test --project=firefox
After running tests, view the HTML report in the /reports folder. To generate the report:
npx playwright show-report
- Fork the repo.
- Create a new branch for your feature.
- Implement your changes and write tests.
- Open a pull request.