test(redesign): Phase 1 Step 2 — add route-smoke safety net
Re-establish a baseline of coverage (Phase 0 removed all tests with Dunbar)
and guard the upcoming App Router migration: the route URLs are stable across
that migration, so this spec must stay green before and after.
- tests/e2e/smoke.spec.ts: visits all 14 public routes, asserts the document
responds < 400, renders non-empty content, and throws no genuine uncaught
exception. Tolerates dev-only React hydration warnings and third-party embed
noise (would otherwise be flaky); caps the settle wait so embed-heavy pages
don't hang.
- Fix a pre-existing Playwright version split: @playwright/test (1.57.0 via
^1.55.0) and playwright (1.58.2) resolved to two copies, breaking the runner
("test() not expected here"). Pin both to 1.60.0.
All 14 routes green (~55s, Node 20). Surfaced for later: a real /cosmicfest
dev-mode hydration mismatch (task #7), a legacyBehavior next/link deprecation,
and a next/head stylesheet warning — all to address in the App Router pass.
Co-Authored-By:
Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Showing
No preview for this file type
| ... | @@ -45,7 +45,7 @@ | ... | @@ -45,7 +45,7 @@ |
| "tailwindcss": "^4.2.1" | "tailwindcss": "^4.2.1" | ||
| }, | }, | ||
| "devDependencies": { | "devDependencies": { | ||
| "@playwright/test": "^1.55.0", | "@playwright/test": "1.60.0", | ||
| "@testing-library/dom": "^10.4.1", | "@testing-library/dom": "^10.4.1", | ||
| "@testing-library/jest-dom": "^6.8.0", | "@testing-library/jest-dom": "^6.8.0", | ||
| "@testing-library/react": "^16.3.0", | "@testing-library/react": "^16.3.0", | ||
| ... | @@ -57,7 +57,7 @@ | ... | @@ -57,7 +57,7 @@ |
| "jest-environment-jsdom": "^30.1.2", | "jest-environment-jsdom": "^30.1.2", | ||
| "jest-pnp-resolver": "^1.2.3", | "jest-pnp-resolver": "^1.2.3", | ||
| "next-router-mock": "^1.0.2", | "next-router-mock": "^1.0.2", | ||
| "playwright": "^1.58.2", | "playwright": "1.60.0", | ||
| "typescript": "^5.3.3", | "typescript": "^5.3.3", | ||
| "vercel": "^39" | "vercel": "^39" | ||
| }, | }, | ||
| ... | ... |
tests/e2e/smoke.spec.ts
0 → 100644
Please
register
or
sign in
to comment