How sivaprkolli/playwright_framework works
This repository is a Playwright/TypeScript test framework for exercising a web application through UI and API tests. Its user-to-result workflow is to run a selected test suite, use page objects and shared test support where applicable, and produce test reports. The README also describes configurable environments, authentication fixtures, cross-browser and parallel runs, traces, and screenshots. Several test and support files are not excerpted, so their internal calls and sequencing are not asserted here.
Main entry points: BasePage.ts Page interactions · playwright.config.ts Runner configuration · ui UI test suites · api.spec.ts API test suite
Components 19
Test execution
- Playwright Test
- Runner configuration
playwright.config.ts - Environment loader
src/config/env.ts - Auth setup
tests/auth.setup.ts
UI testing
- UI test suites
tests/ui - API test suite
tests/api/api.spec.ts - Login page object
src/pages/LoginPage.ts - Inventory page object
src/pages/InventoryPage.ts - Cart page object
src/pages/CartPage.ts - Checkout page object
src/pages/CheckoutPage.ts - Page interactions
src/pages/BasePage.ts
Test support
- Test fixtures
tests/fixtures/test.fixture.ts - Shop helper
tests/helpers/shop.helper.ts - Checkout data
tests/test-data/checkout.data.ts
Test results
- Test reporters
playwright.config.ts - Test reports
Other components
- Test operator
- Web application
- API service
Connections 13
- Test operator → Playwright Test: runs tests
README.md - Runner configuration → Playwright Test: configures runner
playwright.config.ts - Playwright Test → UI test suites: runs UI tests
README.md - Playwright Test → API test suite: runs API tests
README.md - Runner configuration → Auth setup: selects setup
playwright.config.ts - Login page object → Page interactions: extends
src/pages/LoginPage.ts - Inventory page object → Page interactions: extends
src/pages/InventoryPage.ts - Cart page object → Page interactions: extends
src/pages/CartPage.ts - Checkout page object → Page interactions: extends
src/pages/CheckoutPage.ts - Runner configuration → Test reporters: configures
playwright.config.ts - Test reporters → Test reports: produces reports
README.md - UI test suites → Web application: tests UI
README.md - API test suite → API service: tests API
README.md