How jaykishoreduvvuri/playwright-javascript-saucedemo works
This repository is a Playwright-based UI automation suite for SauceDemo, organized around page objects and reusable browser actions. Its principal workflow covers login, product browsing and cart operations, checkout information, order review, and completion; the scenarios also exercise locked-out, problem, and performance-glitch users. The README documents the scenarios and application under test; sampled source shows the shared fixture, page wrappers, selectors, and base browser helpers. Individual test-file wiring was not sampled, so links from scenarios to the fixture are marked unverified.
Main entry points: fixture.js Page fixtures · basePage.js Browser helpers · loginPage.js Login page · productsPage.js Product catalog
Components 25
Test scenarios
- Products smoke test
tests/TC_01_productPage.test.js - Checkout happy path
tests/TC_02_checkoutWorkflow.test.js - Standard to glitch
tests/TC_03_checkoutWithSUandPGU.test.js - Problem to glitch
tests/TC_04_checkoutWithPUandPGU.test.js - Glitch to standard
tests/TC_05_checkoutWithPGUandSU.test.js
Test runtime
- Page fixtures
testFixtures/fixture.js - Browser helpers
pages/basePage.js - App URL config
config.js
Shopping flow
- Login page
pages/loginPage.js - Product catalog
pages/productsPage.js - Product details
pages/productDetailsPage.js - Shopping cart
pages/yourCartPage.js - Login selectors
pageobjects/loginPage.js - Catalog selectors
pageobjects/productsPage.js - Detail selectors
pageobjects/productDetailsPage.js - Cart selectors
pageobjects/yourCartPage.js
Checkout flow
- Checkout information
pages/checkoutYourInformationPage.js - Order overview
pages/checkoutOverviewPage.js - Checkout complete
pages/checkoutCompletePage.js - Information selectors
pageobjects/checkoutYourInformationPage.js - Overview selectors
pageobjects/checkoutOverviewPage.js - Completion selectors
pageobjects/checkoutCompletePage.js
Other components
- Test operator
- Playwright page
- SauceDemo app
Connections 34
- Test operator → Products smoke test: runs
README.md - Test operator → Checkout happy path: runs
README.md - Test operator → Standard to glitch: runs
README.md - Test operator → Problem to glitch: runs
README.md - Test operator → Glitch to standard: runs
README.md - Products smoke test → Page fixtures: uses
- Checkout happy path → Page fixtures: uses
- Standard to glitch → Page fixtures: uses
- Problem to glitch → Page fixtures: uses
- Glitch to standard → Page fixtures: uses
- Page fixtures → Login page: creates
testFixtures/fixture.js - Page fixtures → Product catalog: creates
testFixtures/fixture.js - Page fixtures → Product details: creates
testFixtures/fixture.js - Page fixtures → Shopping cart: creates
testFixtures/fixture.js - Page fixtures → Checkout information: creates
testFixtures/fixture.js - Page fixtures → Order overview: creates
testFixtures/fixture.js - Page fixtures → Checkout complete: creates
testFixtures/fixture.js - Login page → Browser helpers: inherits
pages/loginPage.js - Product catalog → Browser helpers: inherits
pages/productsPage.js - Product details → Browser helpers: inherits
pages/productDetailsPage.js - Shopping cart → Browser helpers: inherits
pages/yourCartPage.js - Checkout information → Browser helpers: inherits
pages/checkoutYourInformationPage.js - Order overview → Browser helpers: inherits
pages/checkoutOverviewPage.js - Checkout complete → Browser helpers: inherits
pages/checkoutCompletePage.js - Browser helpers → Playwright page: drives
pages/basePage.js - Login page → Login selectors: uses
pages/loginPage.js - Product catalog → Catalog selectors: uses
pages/productsPage.js - Product details → Detail selectors: uses
pages/productDetailsPage.js - Shopping cart → Cart selectors: uses
pages/yourCartPage.js - Checkout information → Information selectors: uses
pages/checkoutYourInformationPage.js - Order overview → Overview selectors: uses
pages/checkoutOverviewPage.js - Checkout complete → Completion selectors: uses
pages/checkoutCompletePage.js - Login page → App URL config: reads URL
pages/loginPage.js - Playwright page → SauceDemo app: automates
README.md