How andriifrolov/playwright-portfolio works
This repository is a Playwright test framework for the DemoQA bookstore. Its principal workflow is running functional tests against bookstore, login, and profile page objects; a separate accessibility suite scans pages and attaches reports. The framework also provides reusable page fragments, book test data, and environment-dependent data selection. The README documents fixture-based injection of the accessibility report builder. Test implementations and fixture wiring were not sampled, so those connections are not asserted here.
Main entry points: BookSummaryFragment.ts Book summary · BookRow.ts Profile book row · bookstore Bookstore pages · ProfilePage.ts Profile page
Components 16
Test suites
- Functional tests
tests/functional - Accessibility tests
tests/a11
Page objects
- Bookstore pages
framework/pages/bookstore - Login page
framework/pages/signin/LoginPage.ts - Profile page
framework/pages/profile/ProfilePage.ts - Book summary
framework/pages/bookstore/BookSummaryFragment.ts - Profile book row
framework/pages/profile/BookRow.ts
Framework support
- Base page
framework/pages/BasePage.ts - Base fragment
framework/pages/BaseFragment.ts - Book data type
framework/dto/Book.dto.ts - Book test data
framework/utils/TestDataProvider.ts - A11 report builder
framework/a11/A11ReportBuilder.ts - Book data files
framework/resources/testdata
Other components
- Test author
- Axe accessibility engine
- DemoQA bookstore
Connections 14
- Bookstore pages → Book summary: creates rows
framework/pages/bookstore/BookStorePage.ts - Profile page → Book summary: creates rows
framework/pages/profile/ProfilePage.ts - Profile page → Profile book row: creates links
framework/pages/profile/ProfilePage.ts - Book summary → Base fragment: extends
framework/pages/bookstore/BookSummaryFragment.ts - Profile book row → Base fragment: extends
framework/pages/profile/BookRow.ts - Bookstore pages → Profile book row: imports
framework/pages/bookstore/BookStorePage.ts - Book summary → Book data type: checks book data
framework/pages/bookstore/BookSummaryFragment.ts - Book test data → Book data type: types data
framework/utils/TestDataProvider.ts - Book test data → Book data files: loads by environment
framework/utils/TestDataProvider.ts - A11 report builder → Axe accessibility engine: runs scans
framework/a11/A11ReportBuilder.ts - Test author → Functional tests: authors
- Test author → Accessibility tests: authors
- Accessibility tests → A11 report builder: fixture injects
README.md - Functional tests → DemoQA bookstore: tests against
README.md