A scalable and enterprise-grade Playwright + TypeScript Hybrid Automation Framework implementing the Page Object Model (POM), Component Object Model, Fixtures, Multi-Environment support, Authentication Setup, Cross-Browser Execution, Reporting, and CI/CD.
- Playwright
- TypeScript
- Node.js
- Git
- GitHub Actions
- HTML Report
- Allure Report
Playwright-Ecommerce-Framework
│
├── .github
│ └── workflows
│
├── playwright
│ └── .auth
│
├── src
│ ├── components
│ ├── config
│ ├── data
│ ├── fixtures
│ ├── models
│ ├── pages
│ └── utils
│
├── tests
│ ├── auth
│ ├── login
│ ├── product
│ ├── cart
│ ├── checkout
│ └── logout
│
├── playwright.config.ts
└── package.json
- Hybrid Framework
- Page Object Model (POM)
- Component Object Model
- Base Page
- Custom Fixtures
- JSON Data Driven
- Environment Configuration
- Authentication using Storage State
- Cross Browser Testing
- GitHub Actions CI/CD
- HTML Report
- Allure Report
- Page Object Model
- Component Object Model
- Custom Fixtures
- Base Page
- Environment Switching
- JSON Data Driven Testing
- Authentication Setup Project
- Storage State Login
- Multi Browser Execution
- HTML Reporting
- Allure Reporting
- Screenshot on Failure
- Video on Failure
- GitHub Actions Pipeline
- Chromium
- Firefox
- WebKit
Clone the repository
git clone https://github.com/Samlordson/playwright-E-commerce-framework.gitInstall dependencies
npm installInstall Playwright browsers
npx playwright installRun all tests
npx playwright testRun Chromium
npx playwright test --project=chromiumRun Firefox
npx playwright test --project=firefoxRun WebKit
npx playwright test --project=webkitGenerate HTML Report
npx playwright show-reportGenerate Allure Report
allure serve allure-resultsThis project is integrated with GitHub Actions.
Pipeline Steps
- Checkout Repository
- Install Node
- Install Dependencies
- Install Playwright Browsers
- Execute Tests
- Generate Reports
- Upload Artifacts
- Enterprise Hybrid Framework
- Clean Architecture
- Highly Reusable
- Easily Maintainable
- Scalable Design
- CI/CD Ready
Samlordson R B
QA Automation Engineer
Playwright | Selenium | API Automation | CI/CD | TypeScript