Adds an autonomous Playwright suite (acadenice-smoke-full.spec.ts) that drives the prod-like AcadeDoc stack via the UI to surface UI bugs without manual screenshot diagnostic. Each step is wrapped in test.step and records network/console/page errors plus per-step screenshots. A post-test script (scripts/generate-smoke-report.ts) aggregates telemetry into SMOKE-REPORT.md. The smoke runs against the real fork stack (client :5173, server :3001, bridge :4000) using Corentin's prod-like Acadenice credentials. It does NOT share state with the cross-stack e2e suite (no Baserow seeding, no docker-compose-e2e dependency) — its dedicated playwright.smoke.config.ts declares no setup project. Coverage: login, create page, sub-page nesting, wikilink + backlink, slash /database, slash /template, slash /sync-block, workspace graph, space graph. Initial run results (baseline): 2 OK / 7 KO / 0 PARTIAL — confirms SpaceSidebar renders-more-hooks crash when opening "Nouvelle page" submenu (blank-screen Error Boundary), GET /api/acadenice/templates → 403, and space-scoped graph entry point not reachable. Captured in SMOKE-REPORT.md for follow-up by R4.5/R4.6.
25 lines
823 B
JSON
25 lines
823 B
JSON
{
|
|
"name": "formation-hub-e2e",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"description": "Playwright e2e cross-stack tests — R3.1.e (bridge + DocAdenice + Baserow)",
|
|
"scripts": {
|
|
"e2e": "playwright test",
|
|
"e2e:headed": "playwright test --headed",
|
|
"e2e:debug": "playwright test --debug",
|
|
"e2e:ci": "playwright test --reporter=github,html",
|
|
"e2e:list": "playwright test --list",
|
|
"smoke": "playwright test --config=playwright.smoke.config.ts",
|
|
"smoke:report": "tsx scripts/generate-smoke-report.ts",
|
|
"smoke:full": "playwright test --config=playwright.smoke.config.ts; tsx scripts/generate-smoke-report.ts"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.44.0",
|
|
"dotenv": "^16.4.5",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5.4.5"
|
|
},
|
|
"engines": {
|
|
"node": ">=22"
|
|
}
|
|
}
|