How laraalexlopes/saucedemo-e2e-tests works
This repository is an end-to-end Playwright test suite for SauceDemo, not the e-commerce application itself. Its documented workflow is to prepare session/cart state, exercise page-object actions, and assert functional, accessibility, visual, and checkout results across browsers. The README documents fixture and spec organization, but those implementations were not sampled; links to them are therefore shown only where the README explicitly describes the relationship.
Main entry points: fixtures Workflow fixtures · pages.ts Page objects · products.ts Catalog and totals · customer.factory.ts Customer factory
Components 15
Test Preparation
- Workflow fixtures
src/fixtures
Test Domain Data
- Catalog and totals
src/data/products.ts - Test users
src/data/users.ts - Customer factory
src/data/customer.factory.ts
Browser Interaction
- Page objects
src/pages/pages.ts
Test Verification
- Test scenarios
tests - Login scenarios
tests/auth.spec.ts - Inventory scenarios
tests/inventory.spec.ts - Cart scenarios
tests/cart.spec.ts - Checkout scenarios
tests/checkout.spec.ts - Accessibility checks
tests/accessibility.spec.ts - Visual regression
tests/visual.spec.ts - Known-issue checks
tests/known-issues.spec.ts
Other components
- Test runner
- SauceDemo
Connections 16
- Test runner → Test scenarios: runs
README.md - Test scenarios → Workflow fixtures: uses steps
README.md - Workflow fixtures → Page objects: uses page objects
- Page objects → SauceDemo: drives browser
src/pages/pages.ts - Login scenarios → Workflow fixtures: uses steps
README.md - Inventory scenarios → Workflow fixtures: uses steps
README.md - Cart scenarios → Workflow fixtures: uses steps
README.md - Checkout scenarios → Workflow fixtures: uses steps
README.md - Accessibility checks → Workflow fixtures: uses steps
- Visual regression → Workflow fixtures: uses steps
- Known-issue checks → Workflow fixtures: uses steps
- Workflow fixtures → Catalog and totals: checks totals
README.md - Workflow fixtures → Customer factory: builds customer
README.md - Workflow fixtures → Test users: selects session
- Catalog and totals → Page objects: types products
src/pages/pages.ts - Customer factory → Page objects: types customer
src/pages/pages.ts