How hasanazeerkhan/automationexercise works
This is a Playwright automation framework for the Automation Exercise website. Its main user-to-result workflow is to run tests through reusable page fixtures, perform page-level actions across account, catalog, cart, checkout, and payment stages, then assert the resulting UI state. The graph also preserves contact, navigation, scenario, and authentication-setup capabilities documented in the README. Relationships involving unsampled test files and fixtures are based on README descriptions; source excerpts show page-object behavior and their shared base class.
Main entry points: Page.fixtures.js Page fixtures · Base.page.js Base page · Contact.page.js Contact form · modules Feature tests
Components 24
Test execution
- Playwright runner
- Feature tests
tests/modules - Scenario tests
tests/scenario - End-to-end tests
tests/e2e - Authentication setup
tests/auth.setup.js - Page fixtures
src/fixtures/Page.fixtures.js - Stored browser state
Page objects
- Base page
src/pages/Base.page.js - Navigation
src/pages/Navigation.Tab.js - Home page
src/pages/Home.page.js - Login
src/pages/Login.page.js - Signup
src/pages/Signup.page.js - Account created
src/pages/AccountCreated.page.js - Account deleted
src/pages/AccountDeleted.page.js - Product catalog
src/pages/Products.page.js - Shopping cart
src/pages/Cart.page.js - Checkout
src/pages/Checkout.page.js - Payment
src/pages/Payment.page.js - Order confirmation
src/pages/PaymentCompleted.page.js - Contact form
src/pages/Contact.page.js
Test data
- Dynamic data
src/utils/dynamicDataGenerator.utils.js - Credentials
testData/credentials.json - Purchase data
testData/purchaseFlow.json
Other components
- Automation Exercise
Connections 41
- Playwright runner → Feature tests: runs
README.md - Playwright runner → Scenario tests: runs
README.md - Playwright runner → End-to-end tests: runs
README.md - Playwright runner → Authentication setup: runs setup
README.md - Feature tests → Page fixtures: consume
README.md - Scenario tests → Page fixtures: consume
README.md - End-to-end tests → Page fixtures: consume
README.md - Authentication setup → Stored browser state: stores
README.md - Page fixtures → Home page: instantiates
README.md - Page fixtures → Navigation: instantiates
README.md - Page fixtures → Login: instantiates
README.md - Page fixtures → Signup: instantiates
README.md - Page fixtures → Account created: instantiates
README.md - Page fixtures → Account deleted: instantiates
README.md - Page fixtures → Product catalog: instantiates
README.md - Page fixtures → Shopping cart: instantiates
README.md - Page fixtures → Checkout: instantiates
README.md - Page fixtures → Payment: instantiates
README.md - Page fixtures → Order confirmation: instantiates
README.md - Page fixtures → Contact form: instantiates
README.md - Dynamic data → Purchase data: reads
src/utils/dynamicDataGenerator.utils.js - Feature tests → Credentials: uses
README.md - Signup → Dynamic data: uses
README.md - Navigation → Contact form: opens
src/pages/Navigation.Tab.js - Product catalog → Automation Exercise: automates
README.md - Shopping cart → Automation Exercise: automates
README.md - Checkout → Automation Exercise: automates
README.md - Payment → Automation Exercise: automates
README.md - Contact form → Automation Exercise: automates
README.md - Login → Base page: extends
src/pages/Login.page.js - Signup → Base page: extends
src/pages/Signup.page.js - Navigation → Base page: extends
src/pages/Navigation.Tab.js - Home page → Base page: extends
src/pages/Home.page.js - Product catalog → Base page: extends
src/pages/Products.page.js - Shopping cart → Base page: extends
src/pages/Cart.page.js - Checkout → Base page: extends
src/pages/Checkout.page.js - Payment → Base page: extends
src/pages/Payment.page.js - Order confirmation → Base page: extends
src/pages/PaymentCompleted.page.js - Contact form → Base page: extends
src/pages/Contact.page.js - Account created → Base page: extends
src/pages/AccountCreated.page.js - Account deleted → Base page: extends
src/pages/AccountDeleted.page.js