QA Overview
A structured E2E test suite lives in qa/ and uses Playwright to validate production pages.
Quick Start
cd qanpm installnpx playwright install chromium
# Critical path only (fast, ~12 tests)npm run test:critical
# Sampled regional coverage (~150 tests)npm run test:sampled
# Full suitenpm run test:fullFrom Project Root
# Via Makefilecd site && make qa-criticalcd site && make qa-sampledcd site && make qa-fullTest Structure
| Directory | Purpose |
|---|---|
tests/critical-path/ | P1 pages: home, scopes, topics, special pages |
tests/regional/ | State index and city sample pages |
tests/seo/ | SEO meta validation |
tests/performance/ | Lighthouse budgets |
src/pages/ | Page Object Models |
src/helpers/ | Reusable assertion helpers |
src/fixtures/ | Page catalog and sampling config |
Configuration
Copy .env.example to .env:
| Variable | Default | Description |
|---|---|---|
BASE_URL | https://redecasas.com.br | Target environment |
QA_MODE | critical | critical, sampled, full, or custom |
CITY_SAMPLE_SIZE | 3 | Cities per state to test |
Reports
# HTML reportnpm run report:html
# JSON resultscat reports/json/test-results.json
# LLM-readable summarycat reports/llm-report.txt