dorfteich/apps/web/playwright.config.ts
Claude Fable 5 fb1422f56f
Some checks failed
CD / Build and push images (push) Failing after 5s
CD / Deploy to Test (push) Has been skipped
CD / Smoke tests against Test (push) Has been skipped
CD / Promote to Int (push) Has been skipped
CI / Lint, typecheck, test (push) Failing after 7s
CI / Build container images (push) Has been skipped
Add CD workflow: build-push, deploy Test, smoke suite, promote Int
On every push to main: build both images once (SHA + moving `test`
tag), push to the Gitea registry, SSH-deploy the Test stage, wait for
readiness, run the new Playwright smoke suite (SPA shell, web
liveness, api healthz/readyz) against https://test.dorfteich.cloud,
and on green retag the identical SHA images as `int` and deploy Int.
The CI image-build job becomes PR-only to avoid double builds on main.

Part of #8

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-04 19:57:16 +02:00

14 lines
391 B
TypeScript

import { defineConfig } from '@playwright/test';
// Smoke/e2e tests run against a deployed stage (CD pipeline) or a local
// stack. The target comes from E2E_BASE_URL; no dev server is started here.
export default defineConfig({
testDir: './e2e',
timeout: 30_000,
retries: 1,
reporter: [['list']],
use: {
baseURL: process.env.E2E_BASE_URL ?? 'http://localhost:5173',
},
});