How raptatinha/tau-advanced-playwright works
This repository is an Advanced Playwright course project: its product is a set of browser and API automation examples for DemoQA, rather than a standalone application. The main workflow configures a target environment, performs UI or API-based authentication, then exercises pages and APIs with reusable page objects, fixtures, and test data. Separate examples cover visual regression and multi-role stored authentication. The README documents these capabilities; source excerpts are limited to Playwright configs, so links to unsampled test implementations are documented rather than source-verified.
Main entry points: specs UI scenarios · api API scenarios · playwright.config.ts Playwright configs · auth-setup.ts Auth setup
Components 21
Test Configuration
- Playwright configs
playwright.config.ts
Authentication
- Auth setup
tests/setup/auth-setup.ts - Global setup
tests/setup/global-setup.ts - Login page
tests/ui/pages/login-page.ts - Stored auth tests
tests/ui/specs-auth
UI Testing
- UI scenarios
tests/ui/specs - Page objects
tests/ui/pages - Book fixtures
tests/ui/fixtures/books-fixture.ts - Page hooks
tests/utils/hooks.ts - Visual regression
tests/ui/specs/visual-regression.spec.ts
API Testing
- API scenarios
tests/api - API methods
tests/utils/apiMethods.ts - Collection requests
tests/api/requests
Test Support
- Environment URLs
tests/utils/environmentBaseUrl.ts - UI URL builder
tests/utils/uiUrlBuilder.ts - API URL utilities
tests/utils/apiUrlBuilder.ts - Test data
tests/data
Other components
- Test author
- Playwright runner
- DemoQA
- Applitools Eyes
Connections 21
- Test author → Playwright configs: chooses configuration
- Playwright configs → Playwright runner: configures runner
- Playwright configs → Environment URLs: imports URLs
playwright.config.ts - Playwright runner → Global setup: runs setup
- Global setup → Login page: authenticates via UI
README.md - Auth setup → Login page: uses page objects
README.md - Stored auth tests → Auth setup: uses stored auth
README.md - Playwright runner → UI scenarios: runs scenarios
- UI scenarios → Page objects: uses page objects
README.md - UI scenarios → Book fixtures: reuses flows
README.md - UI scenarios → Page hooks: creates page objects
README.md - UI scenarios → UI URL builder: builds URLs
README.md - UI scenarios → DemoQA: exercises application
README.md - Playwright runner → API scenarios: runs scenarios
- API scenarios → API methods: uses HTTP methods
README.md - API scenarios → Collection requests: sends collection requests
- API scenarios → API URL utilities: builds request URLs
README.md - API scenarios → Test data: uses test data
README.md - API scenarios → DemoQA: calls application API
README.md - Playwright runner → Visual regression: runs regression
- Visual regression → Applitools Eyes: checks visual output
README.md