How nisha8393/automation-exercise works
This repository is a Playwright end-to-end test suite for automationexercise.com, organized around page objects and fixtures. Users run smoke, regression, accessibility, or purchase-journey tests against the site; the suite also supports saved authentication and test-data generation. Reporting and manual-case coverage are separate suite capabilities. The README documents suite categories and fixture use; sampled source confirms helper and reporting relationships. Individual test-to-page-object calls were not sampled, so those links are shown only at the documented fixture boundary.
Main entry points: base.js Page fixtures · smoke Smoke checks · regression Regression tests · purchaseFlow.spec.js Purchase journey
Components 22
Test execution
- Smoke checks
tests/smoke - Regression tests
tests/regression - Accessibility scans
tests/a11y/accessibility.spec.js - Purchase journey
tests/e2e/purchaseFlow.spec.js - Auth setup
tests/auth.setup.js - Playwright config
playwright.config.js
Page objects
- Page objects
pages - Cart page
pages/viewCart.page.js - Checkout page
pages/checkout.page.js - Product pages
pages/product.page.js - Registration page
pages/register.page.js
Test support
- Page fixtures
fixtures/base.js - Test data
utils/helper/dataGenerator.js - Registration helper
utils/helper/registration.helper.js - Cart cleanup
utils/helper/cart.helper.js - Saved auth state
utils/authState.js
Coverage and reporting
- Run report
scripts/generateExcelReport.js - Report chart
scripts/pieChart.js - Case coverage
scripts/coverage.js - Report utilities
scripts/reportUtils.js
Other components
- Test runner
- Automation Exercise
Connections 20
- Test runner → Smoke checks: runs
README.md - Test runner → Regression tests: runs
README.md - Test runner → Accessibility scans: runs
README.md - Test runner → Purchase journey: runs
README.md - Smoke checks → Automation Exercise: checks UI
README.md - Regression tests → Automation Exercise: tests features
README.md - Accessibility scans → Automation Exercise: scans pages
README.md - Purchase journey → Automation Exercise: orders product
README.md - Playwright config → Auth setup: runs setup
playwright.config.js - Playwright config → Run report: registers reporter
playwright.config.js - Smoke checks → Page fixtures: uses shared
README.md - Regression tests → Page fixtures: uses isolated
README.md - Purchase journey → Page fixtures: uses isolated
README.md - Page fixtures → Page objects: exposes
README.md - Registration helper → Test data: generates data
utils/helper/registration.helper.js - Registration helper → Registration page: fills account
utils/helper/registration.helper.js - Cart cleanup → Cart page: cleans cart
utils/helper/cart.helper.js - Run report → Report chart: renders chart
scripts/generateExcelReport.js - Case coverage → Report utilities: uses helpers
scripts/coverage.js - Case coverage → Report utilities: reads case data
scripts/coverage.js