How pavanoltraining/opencartplaywrightpythonframework works
This repository is a Playwright/Pytest automation suite for exercising an e-commerce storefront. Its page objects model account, catalog, cart, and checkout interactions; the clearest shown transitions are product-to-cart-to-checkout and account-to-logout-to-home. Test modules and data files are present, but their source was not excerpted, so their runtime wiring is not asserted here. Edges between page objects reflect explicit imports and returned page objects; storefront interactions are represented at the page-object boundary.
Main entry points: product_page.py Product page · shopping_cart_page.py Shopping cart · search_results_page.py Search results · home_page.py Home page
Components 13
Test scenarios
- Pytest scenarios
tests
Storefront pages
- Home page
pages/home_page.py - Search results
pages/search_results_page.py - Product page
pages/product_page.py - Shopping cart
pages/shopping_cart_page.py - Checkout
pages/checkout_page.py - Account page
pages/my_account_page.py - Logout page
pages/logout_page.py - Login page
pages/login_page.py - Registration page
pages/registration_page.py
Test data
- Data readers
utilities/data_reader_util.py - Generated data
utilities/random_data_util.py
Other components
- E-commerce storefront
Connections 12
- Search results → Product page: opens product
pages/search_results_page.py - Product page → Shopping cart: opens cart
pages/product_page.py - Shopping cart → Checkout: opens checkout
pages/shopping_cart_page.py - Account page → Logout page: opens logout
pages/my_account_page.py - Logout page → Home page: returns home
pages/logout_page.py - Home page → E-commerce storefront: interacts with
pages/home_page.py - Search results → E-commerce storefront: interacts with
pages/search_results_page.py - Product page → E-commerce storefront: interacts with
pages/product_page.py - Shopping cart → E-commerce storefront: interacts with
pages/shopping_cart_page.py - Checkout → E-commerce storefront: interacts with
pages/checkout_page.py - Login page → E-commerce storefront: interacts with
pages/login_page.py - Registration page → E-commerce storefront: interacts with
pages/registration_page.py