Skip to content

Documentation

Automations Tests — Control Map

Coverage for /config/automations: admin gate, list shell, CSRF, confirm delete.

7/18/2026
1 min read Edit on GitHub
On this page

See ADR: Testing 2026.

Surface

Piece Role
+page.server.ts Admin-only gate
automations-api.ts Browser client via fetchApi (CSRF automatic)
+page.svelte / [id] List + builder UI only
API /api/automations

Control → test matrix

Control Unit E2E
Admin gate
New + search shell
Seeded list + search empty (no soft-skip) testing API seed-automation
Builder deep flow: name → ops → save → list → delete
showConfirm delete / bulk product

Run

bun run test:unit -- tests/unit/routes/automations-page-server.test.ts
bun x playwright test tests/e2e/routes/config/automations.spec.ts
testinge2eautomations
Was this page helpful?