Skip to content

Add a Playwright E2E smoke test for the analyze-and-render flow #69

@DataDave-Dev

Description

@DataDave-Dev

🇪🇸 Español

Todos los tests son unitarios sobre los analizadores. El recorrido principal — pegar código → POST /api/analyze → renderizar un grafo de React Flow — no tiene cobertura automatizada, y el camino WASM/Node más el render de cliente es justo donde se esconden las regresiones de integración.

Archivos: src/app/[lang]/app/page.tsx, CodeWorkspace.tsx, Diagram.tsx, route.ts

Solución sugerida: Agregar Playwright con un test de humo (cargar app, enviar snippet, verificar que renderizan nodos del grafo) en un job de CI separado.


🇬🇧 English

All tests are unit-level on analyzers. The core journey — paste code → POST /api/analyze → render a React Flow graph — has no automated coverage, and the WASM/Node path plus client rendering is exactly where integration regressions hide.

Files: src/app/[lang]/app/page.tsx, CodeWorkspace.tsx, Diagram.tsx, route.ts

Suggested fix: Add Playwright with one smoke test (load app, submit snippet, assert graph nodes render) in a separate CI job.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededtestingTests and coverage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions