Pular para o conteúdo

Test Structure

Critical Path Tests (tests/critical-path/)

Home Page (home.spec.ts)

TestAssertions
loads with correct titleHTTP 200, title matches /RedeCasas/, SEO meta, nav links to scopes and chat
meets performance budgetPage load < 5s, no console errors

Scopes (scopes.spec.ts)

TestAssertions
scope loads and lists statesHTTP 200, SEO, all 27 states have valid links
alias loadsRecords HTTP status (some aliases may 404)

Topics (topics.spec.ts)

TestAssertions
topic loads with article structureHTTP 200, SEO, at least one h1 and one h2

Special Pages (special.spec.ts)

TestAssertions
special page loadsHTTP 200, SEO, nav/footer, load time < 8s
/chat/Interactive input visible
/contato/Contact-related text present

Regional Tests (tests/regional/)

State Index (state-index.spec.ts)

Navigates to {scope}/{state}/ for each state:

  • HTTP 200, SEO, H1 contains state name, at least one city link
  • Sampled mode: 6 states × 3 scopes = 18 tests
  • Full mode: 27 states × 3 scopes = 81 tests

City Sample (city-sample.spec.ts)

Navigates to {scope}/{state}/{city}/:

  • HTTP 200, SEO, title contains city/state, body > 200 chars, no broken images
  • ~240 tests at max sample size (3 scopes × 27 states × 3 cities)

Runtimes

SuiteTestsTime
Critical~12~1 min
Sampled (state)18~2 min
Sampled (city)~240~5-10 min
Full (state)81~8-10 min