This project is a Playwright TypeScript automation framework using the Page Object Model (POM) design for https://www.saucedemo.com.
- TypeScript + Playwright
- Page Object Model (POM) structure
- End-to-end test for ordering 'Sauce Labs Backpack'
src/pages/— Page Object classestests/— Test specsplaywright.config.ts— Playwright configuration
- Install dependencies:
npm install
- Run the test:
npx playwright test
- Login to saucedemo.com
- Add 'Sauce Labs Backpack' to cart
- Checkout with random user data
- Verify order confirmation message
Replace credentials or test data as needed for your use case.