ci: run integration tests on PRs + repair the suite (108/108) #54
No reviewers
Labels
No labels
bug
claude-failed
claude-pr
claude-queue
claude-working
feature
interactive
portal
triaged
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: shad0w/pelagia-portal#54
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "ci/integration-tests"
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?
What & why
pnpm test:integrationwas never run in CI, and the suite had quietly rotted against the app. This branch repairs it to 108/108 green and wires it into PR checks against an isolated, ephemeral Postgres.Test suite repairs (it failed in a clean env before this)
MV Ocean Pride/MV Sea Breeze/TECH-OPS→ current seed entities.lineItems[i].description, butcreatePokeys the loop onlineItems[i].name→ every PO-creating test produced zero line items. Fixed the helper.POActionandReceipthave noonDelete: Cascade, sodeletePo*now removes them before the PO.App/tests/fixtures/Sample_PO.xlsx(was an absolute path to a non-existent dir).intent: "resubmit"; the payment "wrong permission" test uses TECHNICAL (MANAGER now holdsprocess_payment); the unverified-vendor test creates a genuinely code-less vendor; products-search code assertion.every→.some.CI
New
integrationjob inpr-checks.yml: throwawaypostgres:16on a random host port (isolated from prod /pelagia_test/ staging),migrate deploy→db:seed→pnpm test:integration. Container torn down via an EXIT trap.Verification
Locally, against a fresh migrated + seeded DB: 108/108 integration tests pass;
pnpm type-checkclean.🤖 Generated with Claude Code
9e787fd15fto991b7ca5dd