[DTP-Worker] Sprint 1 · Baseline QA Playwright (4 endpoints) + fix gate rouge

Livrable QA Sprint 1 (roadmap §Sprint 1 · GAP_ANALYSIS §7) : projet Playwright
auto-contenu sous tests/, data-driven sur e2e/routes.json pour /waf-home /crm
/qa /choisir-mon-unite. 4 contrôles/route : status<400 · HTML titré+lang ·
brand luxury (#0a0a12/#f0b429 + Fraunces/Cormorant) · zéro erreur JS/5xx.
Cible via DTP_BASE_URL (aucune URL codée en dur). Zéro invention de chiffres (#6).

- tests/{playwright.config.ts,package.json,tsconfig.json,.gitignore,README.md}
- tests/e2e/{routes.json,smoke.spec.ts,_shared/contract.ts}
- CI : job e2e-baseline manuel (workflow_dispatch) dans .gitea/workflows/ci.yml
  — hors gate push/PR (exige serveur live), Gitea Actions only (#2)
- Fix : gate CI rouge sur HEAD (guard flaguait sa propre doc de test négatif)
  → escape hatch documenté ci-allow. Les 3 scripts du gate repassent verts.
- GAP_ANALYSIS §7 : critère Baseline Playwright →  (exécution VPS différée)
- daily report 2026-07-30 (session 2)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude Code DTP Worker
2026-07-30 01:02:04 +00:00
parent 1cfb8191f4
commit 1a87b22fd7
11 changed files with 452 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
{
"name": "oto-dtp-e2e",
"version": "1.0.0",
"private": true,
"description": "Baseline QA E2E (Playwright) · OTO Enterprise OS DTP · endpoints Sprint 1",
"scripts": {
"test": "playwright test",
"test:smoke": "playwright test e2e/smoke.spec.ts",
"report": "playwright show-report",
"install:browsers": "playwright install --with-deps chromium webkit"
},
"devDependencies": {
"@playwright/test": "^1.48.0"
}
}