How saima-khan01/qe-automation-take-home-exercise works
This repository is a Playwright-based e-commerce test automation project. Its intended user-to-result flow is to run scenario-driven browser checks across product selection, cart and promotion validation, checkout, and order confirmation. The page objects and Excel reader show several of these capabilities; the test files and JSON scenario loader were not excerpted, so their connections are left unverified rather than inferred. CI execution is part of the project description but is not represented as runtime architecture.
Main entry points: ecommerce.spec.ts E-commerce scenarios · ecommerceExcel.spec.ts Excel scenarios · types.ts Scenario types · CartPage.ts Cart and promotions
Components 12
Test scenarios
- E-commerce scenarios
tests/ecommerce.spec.ts - Excel scenarios
tests/ecommerceExcel.spec.ts
Store interactions
- Product selection
pages/ProductPage.ts - Cart and promotions
pages/CartPage.ts - Checkout form
pages/CheckoutPage.ts - Order confirmation
pages/ConfirmationPage.ts
Scenario data
- JSON scenarios
test-data/scenarios.json - Excel scenarios
test-data/ecommerce_scenarios.xlsx - Scenario types
test-data/types.ts - Excel reader
utils/excelReader.ts
Validation helpers
- Money calculations
utils/money.ts
Other components
- Playwright runner
Connections 12
- Playwright runner → E-commerce scenarios: runs
- Playwright runner → Excel scenarios: runs
- E-commerce scenarios → Product selection: uses
- E-commerce scenarios → Cart and promotions: uses
- E-commerce scenarios → Checkout form: uses
- E-commerce scenarios → Order confirmation: uses
- Excel scenarios → Excel reader: loads
- Excel reader → Excel scenarios: reads
- E-commerce scenarios → JSON scenarios: loads
- Cart and promotions → Scenario types: uses
pages/CartPage.ts - Checkout form → Scenario types: uses
pages/CheckoutPage.ts - Excel scenarios → Scenario types: uses