How akshayp7/playwright-typescript-playwright-test works
This repository is a Playwright/TypeScript end-to-end testing framework. Its main workflow is an engineer selecting an environment and test run, then Playwright executing browser tests against an application and producing test results. The project also covers API, database, accessibility, device, visual-comparison, Lighthouse, and PDF-text testing. Sampled code shows fixture setup, page objects, and shared browser/API/database helpers; several test implementations and integrations are documented but were not sampled, so those links are omitted or marked unverified.
Main entry points: WebActions.ts Browser helpers · BaseTest.ts Test fixtures · playwright.config.ts Run configuration · pageRepository Page objects
Components 18
Test execution
- Run configuration
playwright.config.ts - Environment settings
testConfig.ts
Browser testing
- Browser test suite
tests/functional - Test fixtures
lib/BaseTest.ts - Page objects
pageFactory/pageRepository - Browser helpers
lib/WebActions.ts
Specialized testing
- API tests
tests/api - API helpers
lib/APIActions.ts - Database tests
tests/db - Database helpers
lib/DBActions.ts - Accessibility tests
tests/accessibility - Device emulation
tests/devices - Visual comparison
tests/visualComparison - Lighthouse audits
tests/lighthouse - PDF text tests
tests/functional/PdfToText.test.ts
Test outputs
- Test reporting
CustomReporterConfig.ts
Other components
- Engineer
- Playwright runner
Connections 15
- Engineer → Playwright runner: starts tests
README.md - Playwright runner → Run configuration: loads config
playwright.config.ts - Run configuration → Environment settings: reads settings
playwright.config.ts - Playwright runner → Browser test suite: runs tests
README.md - Test fixtures → Page objects: creates fixtures
lib/BaseTest.ts - Test fixtures → Browser helpers: creates helper
lib/BaseTest.ts - Page objects → Browser helpers: uses actions
pageFactory/pageRepository/LoginPage.ts - Playwright runner → API tests: runs tests
README.md - Playwright runner → Database tests: runs tests
README.md - Playwright runner → Accessibility tests: runs tests
README.md - Playwright runner → Device emulation: runs tests
README.md - Playwright runner → Visual comparison: runs tests
README.md - Engineer → Lighthouse audits: runs audit
README.md - Browser helpers → PDF text tests: extracts PDF text
- Playwright runner → Test reporting: emits reports