You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An end-to-end automation suite for validating the core workflows of an e-commerce platform using Playwright with TypeScript. The suite verifies authentication, inventory interactions, cart updates, checkout flow, and session handling, all through a scalable and maintainable Page Object Model (POM) architecture.
📦 Tech Stack
Component
Description
Framework
Playwright
Language
TypeScript
Test Runner
Playwright Test Runner
Assertions
Built-in Playwright assertions
Design Pattern
Page Object Model (POM)
✅ Features Covered & Test Design Techniques
1. ✅ Verify successful login with a valid user
Verifies login page functionality and post-login redirection to inventory page.
2. ✅ Verify all inventory items are displayed after login
Validates that all 6 expected items are visible with correct details.
3. ✅ Verify Add to Cart Functionality
Verifies cart badge update, button label change, and state persistence.
4. ✅ Verify Remove from Cart Functionality
Ensures removed items reflect in cart icon and cart content.
5. ✅ Verify Checkout Process
Validates item flow from cart to checkout and final confirmation.
6. ✅ Validate Logout from Burger Menu
Confirms redirection and session termination.
7. ✅ Navigate to product detail page and verify information
Ensures correct navigation and rendering of product details.
8. ✅ Verify Back Button Behavior After Logout
Prevents re-access of protected pages post logout.
9. ✅ Validate Cart Icon Count Updates Correctly
Ensures cart badge reflects correct item count after add/remove.
🧠 SOLID Principles Applied
Principle
Application in Code
SRP
Each Page Object class handles only its own concerns
OCP
Easy to extend specs without changing core logic
LSP
Page Object methods follow predictable behavior
ISP
Test classes use only relevant selectors/actions
DIP
Tests rely on abstracted methods, not raw selectors
🧪 Validates all critical workflows including login, cart, checkout, and logout
👨💻 Developer-friendly structure for rapid test creation and maintenance
✅ Ready-to-run instructions with parallel execution support
About
A collection of end-to-end tests for a web application using Playwright. Tests cover user interactions like login, cart functionality, inventory management, and sorting functionality.