Skip to content

Documentation

Workflows Tests — Control Map

Coverage for /config/workflows content lifecycle FSM builder.

7/18/2026
1 min read Edit on GitHub

Product surface

Piece Role
+page.server.ts Admin gate
+page.svelte Shell wrapper (data-testid=workflows-page)
workflow-builder.svelte Visual FSM editor
workflows-api.ts list collections/roles, load/save via fetchApi
API GET/POST/DELETE/PATCH /api/workflows
Service workflowService (definitions + transitions)
Testing seed-workflow / delete-workflow

Control → test matrix

Control Unit E2E
Admin page gate ✅ workflows-page-server shell
API admin gate ✅ workflow-security
API client CSRF ✅ workflows-api
Canvas + save shell ✅ workflows.spec
Golden seed/load seed-workflow ✅ seed → GET or save path

Run

bun run test:unit -- tests/unit/api/workflow-security.test.ts tests/unit/config/workflows-api.test.ts tests/unit/routes/workflows-page-server.test.ts
bun x playwright test tests/e2e/routes/config/workflows.spec.ts
testinge2eworkflows
Was this page helpful?