How karkimilan/saucelabs_e2e works
This repository is a Playwright end-to-end test framework for SauceDemo’s e-commerce checkout, organized around page objects. The principal workflow is the test exercising login, product browsing, cart management, and checkout through completion; the page classes implement those interactions and checks. Product sorting, item removal, login errors, and logout are additional documented-by-source capabilities. The test file itself is present in the tree but was not excerpted, so its specific calls are not verified; workflow links below rely on the README’s POM and checkout-flow description.
Main entry points: e2e.spec.ts Checkout tests · Login.ts Login page · InventoryPage.ts Inventory page · ProductPage.ts Product page
Components 8
Checkout workflow
- Checkout tests
tests/e2e.spec.ts
Page objects
- Login page
pages/Login.ts - Inventory page
pages/InventoryPage.ts - Product page
pages/ProductPage.ts - Cart page
pages/CartPage.ts - Checkout page
pages/CheckoutPage.ts
Other components
- Playwright runner
- SauceDemo
Connections 11
- Playwright runner → Checkout tests: runs tests
readme.md - Checkout tests → Login page: exercises
readme.md - Checkout tests → Inventory page: exercises
readme.md - Checkout tests → Product page: exercises
readme.md - Checkout tests → Cart page: exercises
readme.md - Checkout tests → Checkout page: exercises
readme.md - Login page → SauceDemo: interacts with
pages/Login.ts - Inventory page → SauceDemo: interacts with
pages/InventoryPage.ts - Product page → SauceDemo: interacts with
pages/ProductPage.ts - Cart page → SauceDemo: interacts with
pages/CartPage.ts - Checkout page → SauceDemo: interacts with
pages/CheckoutPage.ts