Skip to content

ArpitChoubey/Playwright-typescript-ecommerce-automation-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ Playwright TypeScript E-Commerce Automation Framework

๐Ÿ”ฅ A scalable, production-ready End-to-End Automation Framework built using Playwright + TypeScript following industry best practices.

๐Ÿ“Œ Project Overview

This project demonstrates a robust automation framework designed for testing an e-commerce application (Sparkle Cart Website).

It is built with a focus on:

  • โœ… Scalability
  • โœ… Maintainability
  • โœ… Reusability
  • โœ… Real-world QA use cases

๐Ÿง  Key Highlights

โœ”๏ธ End-to-End Test Coverage
โœ”๏ธ Page Object Model (POM) Design Pattern
โœ”๏ธ Data-Driven Testing Approach
โœ”๏ธ Modular & Clean Architecture
โœ”๏ธ Allure Reporting Integration
โœ”๏ธ CI/CD Ready (GitHub Workflows)
โœ”๏ธ TypeScript for Strong Typing
โœ”๏ธ Easy Debugging & Execution


๐Ÿ—๏ธ Project Structure

๐Ÿ“ฆ Sparkle-Cart-Playwright-Framework โ”ฃ ๐Ÿ“‚ .github/workflows โ†’ CI/CD Pipelines โ”ฃ ๐Ÿ“‚ TestData โ†’ Test Data Files โ”ฃ ๐Ÿ“‚ allure-report โ†’ Generated Reports โ”ฃ ๐Ÿ“‚ allure-results โ†’ Raw Results โ”ฃ ๐Ÿ“‚ pages โ†’ Page Object Classes โ”ฃ ๐Ÿ“‚ tests โ†’ Test Scripts โ”ฃ ๐Ÿ“‚ utils โ†’ Utility Functions โ”ฃ ๐Ÿ“œ playwright.config.ts โ†’ Playwright Config โ”ฃ ๐Ÿ“œ package.json โ†’ Dependencies โ”— ๐Ÿ“œ .gitignore โ†’ Ignored Files


๐Ÿงฉ Framework Design

๐Ÿ”น Page Object Model (POM)

  • Each page has its own class
  • Separation of locators & actions
  • Improves maintainability

๐Ÿ”น Test Layer

  • Contains test scenarios
  • Covers:
    • ๐Ÿ›’ Cart functionality
    • ๐Ÿ” Search functionality
    • ๐Ÿ  Homepage validation
    • ๐Ÿ“ฆ Order tracking
    • ๐Ÿ”„ End-to-End flows

๐Ÿ”น Utility Layer

  • Data providers
  • Random data generators
  • Reusable helpers

๐Ÿงช Test Scenarios Covered

โœ”๏ธ End-to-End Purchase Flow
โœ”๏ธ Product Search Validation
โœ”๏ธ Add to Cart Functionality
โœ”๏ธ Order Tracking Validation
โœ”๏ธ Homepage UI & Functional Testing


โš™๏ธ Tech Stack

  • ๐ŸŽญ Playwright
  • ๐ŸŸฆ TypeScript
  • ๐Ÿงช Node.js
  • ๐Ÿ“Š Allure Reports
  • ๐Ÿ” GitHub Actions (CI/CD)

๐Ÿš€ Getting Started

1๏ธโƒฃ Clone the Repository

git clone https://github.com/your-username/your-repo-name.git
cd your-repo-name
2๏ธโƒฃ Install Dependencies
npm install
3๏ธโƒฃ Install Playwright Browsers
npx playwright install
4๏ธโƒฃ Run Tests
npx playwright test
5๏ธโƒฃ Run Tests in UI Mode
npx playwright test --ui
๐Ÿ“Š Allure Report

Generate & View Report:

npx allure generate ./allure-results --clean
npx allure open

๐Ÿ“Œ Provides:

Detailed test execution insights
Screenshots on failure
Step-level reporting
๐Ÿ”„ CI/CD Integration
GitHub Actions workflow added
Automatically runs tests on push
Helps maintain code quality
๐Ÿ’ก Why This Framework Stands Out?

๐Ÿ‘‰ Industry-level structure used in top product companies
๐Ÿ‘‰ Designed with real QA challenges in mind
๐Ÿ‘‰ Easily extendable for large-scale projects
๐Ÿ‘‰ Demonstrates strong SDET/QA Automation skills

๐ŸŽฏ Ideal For
QA Engineers
SDET Professionals
Automation Testers
Recruiters evaluating automation skills
๐Ÿ“ข Let's Connect & Collaborate

Iโ€™m actively looking for opportunities in:

๐Ÿ”น QA Automation
๐Ÿ”น SDET Roles
๐Ÿ”น Test Lead / UAT Lead
๐Ÿ‘จโ€๐Ÿ’ป Author

Arpit Choubey
SDET | QA | Automation Engineer

๐Ÿ”— LinkedIn: https://www.linkedin.com/in/arpitchoubey/

โœ๏ธ Medium: https://medium.com/@ArpitChoubey9

โญ Support

If this repository helped you, please โญ star it to support and motivate further contributions.

About

Playwright Typescript E-commerce Automation Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

โšก