website 1.0.0: release checks, contrast and map fixes

- e2e: every section variant in every template (axe and 312 screenshots
  compared with local baselines), Lighthouse on a phone (median of three,
  CPU slowdown calibrated to the machine), the whole suite on real Postgres
  with E2E_DATABASE_URL, a frozen clock, E2E_REUSE for running servers.
- Fixes found by them: contrast on Bold's service times panel and Calendar
  event dates; the OpenStreetMap embed loads only once on screen; the
  messages page's first thumbnail is eager, its host preconnected.
- The restore e2e waits for its second publish (raced on Postgres).
- docs: Hub 2.22.0 deployed; website@1.0.0 released.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-26 10:54:43 +02:00
co-authored by Claude Opus 5.5
parent 6ffad24db1
commit 0b99686ca7
20 changed files with 2083 additions and 35 deletions
+4 -3
View File
@@ -2,7 +2,8 @@ import { defineConfig, devices } from "@playwright/test";
// The Website end to end (docs/WEBSITE-1.0-PLAN.md §13): the real backend on an in-memory database
// with the demo church (e2e/server.ts), and the Next.js pages (a production build). Run with `npx playwright test` in
// apps/website. Nothing needs a database.
// apps/website. Nothing needs a database; set E2E_DATABASE_URL (a database ending in _e2e, dropped and
// made again) to run the same suite on real Postgres. E2E_REUSE=1 uses servers already running on 5310 / 3310.
export default defineConfig({
testDir: "./e2e",
testMatch: "**/*.spec.ts",
@@ -19,7 +20,7 @@ export default defineConfig({
command: "npx tsx e2e/server.ts",
url: "http://127.0.0.1:5310/api/health",
timeout: 120_000,
reuseExistingServer: false,
reuseExistingServer: !!process.env.E2E_REUSE,
stdout: "pipe",
},
{
@@ -28,7 +29,7 @@ export default defineConfig({
cwd: "frontend",
url: "http://localhost:3310/robots.txt",
timeout: 300_000,
reuseExistingServer: false,
reuseExistingServer: !!process.env.E2E_REUSE,
env: { WEBSITE_API_URL: "http://127.0.0.1:5310", WEBSITE_CONTENT_CACHE_SECONDS: "0" },
},
],