Add integration test coverage for core auth, paywall, CRUD, and export flows #46
Labels
No labels
blocked:gate-fetch
blocked:gate-implement
blocked:needs-attention
blocked:needs-decision
blocked:needs-human
blocked:needs-local-checkout
blocked:no-changes
bug
feature-request
in-progress
needs-decompose
needs-triage
ops-task
quickfix
security/high
security/low
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/nodedesk#46
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Bring coverage to the core user-facing flows of nodedesk so a regression in any of them breaks CI. This satisfies EPIC B Phase 5 exit criteria (nodedesk#41: "Core auth/paywall/CRUD/export flows are covered").
Repo layout (verified on origin/main)
tests/*.spec.ts(17 specs exist;pnpm test=npx playwright test).src/**/*.test.ts(e.g.src/services/storage.test.ts,src/middleware/attachmentAuthz.test.ts,src/app/api/attachments/attachments.test.ts);pnpm test:unit=vitest run.vitest.config.tsexcludestests/**from vitest.Work
For each of the four flow families, check whether an integration test exists; if not (or if only a happy path exists), add one that exercises the real handler/route (not a unit-mocked internal helper) covering the happy path plus one negative case (unauthorized, invalid input, paywall-denied). Flow families:
Acceptance criteria
pnpm test,pnpm test:unit, and CI remain green with the new tests.Verification
pnpm test(Playwright e2e)pnpm test:unit(Vitest)pnpm lint/ typecheck if touchedSource: kanban card t_4fe1bb6d (tasker-worker). Part of EPIC B (nodedesk#38/#41), decomposed from nodedesk#2.