Marketplace SPA — Comprehensive Test Suite (7-layer pyramid, regression, adversarial) #25
Labels
No labels
meeting-notes
meeting-sensitive
meeting-transcript
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coopcloud_code/home#25
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?
Context
The marketplace SPA (v1.0.1) has been developed through Phases 2-6 with functional code but insufficient automated testing. The freezone project uses a 7-layer test pyramid with 159+ automated tests. The marketplace needs the same rigor.
Current state
cargo check)cargo test)Deliverables
1. Fix unit tests
src/mcp.rscompile errors in test modecargo testmust pass clean on backend2. API Integration script (
tests/api_integration.sh)Shell/curl script testing the complete user lifecycle:
3. Playwright E2E (
tests/playwright/marketplace-e2e.spec.ts)Suite 1: Full User Journey (serial)
Suite 2: Adversarial (parallel)
Suite 3: Regression tests for 8 known bugs
4. Visual regression
Test gates (must all pass before merge)
Target: 100+ automated tests, all green
Signed-off-by: mik-tf
Test Suite Complete — v1.0.2 Released
Test pyramid (ALL GREEN)
What was built
into_response()+ body extraction. branding.toml added. 25/25 pass.tests/api_integration.sh) — 22 tests: register, challenge, verify, JWT status, wallet balance (100 MC), transactions, payment initiate, webhooks (stripe + clickpesa), transact error cases (expired, invalid sig, invalid pubkey), products, SSR JWT compat.tests/playwright/) — 16 tests across 3 suites:Releases
Signed-off-by: mik-tf