Automated end-to-end test suite built with Playwright and JavaScript, testing the Sauce Demo e-commerce application.
This suite uses the Page Object Model (POM) design pattern to separate locators and actions from test logic. If a selector changes, it only needs to be updated in one place rather than across every test file. This makes the suite maintainable and scalable as the application grows.
- Login - Valid credentials, invalid credentials, empty field validation
- Cart - Add to cart, remove from cart, cart navigation
- Checkout - Full purchase flow, empty field validation
- Sorting - A-Z, Z-A, price low to high, price high to low
- Playwright
- JavaScript
- Node.js
- GitHub Actions (CI/CD)
- Node.js v18+
npm install npx playwright install
npx playwright test
npx playwright test tests/login.spec.js
npx playwright show-report