Heritage, Bold, Community and Clean drawing all 26 section variants with their headers, homepage order and style settings; colours made safe (WCAG AA) by the backend; fonts and corners from the shared brand style. Publishing into numbered versions, the content API with live messages and events and the church profile from Accounts, uploads, every page kind, simple event pages, Coming soon, 404, sitemap, SEO basics and the church's JSON-LD. The demo church (npm run demo) and Playwright e2e: every template's pages pass axe and the SEO checks. website.sh builds packages/seo. Decision 17 (first Owner) recorded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
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. Run with `npx playwright test` in
|
|
// apps/website. Nothing needs a database.
|
|
export default defineConfig({
|
|
testDir: "./e2e",
|
|
testMatch: "**/*.spec.ts",
|
|
workers: 1,
|
|
fullyParallel: false,
|
|
timeout: 120_000,
|
|
expect: { timeout: 20_000 },
|
|
reporter: "list",
|
|
outputDir: "e2e/test-results",
|
|
use: { baseURL: "http://localhost:3310", trace: "retain-on-failure", navigationTimeout: 90_000 },
|
|
projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"] } }],
|
|
webServer: [
|
|
{
|
|
command: "npx tsx e2e/server.ts",
|
|
url: "http://127.0.0.1:5310/api/health",
|
|
timeout: 120_000,
|
|
reuseExistingServer: false,
|
|
stdout: "pipe",
|
|
},
|
|
{
|
|
command: "npx next dev -p 3310",
|
|
cwd: "frontend",
|
|
url: "http://localhost:3310/robots.txt",
|
|
timeout: 180_000,
|
|
reuseExistingServer: false,
|
|
env: { WEBSITE_API_URL: "http://127.0.0.1:5310" },
|
|
},
|
|
],
|
|
});
|