Overview
frontend/src/app/test-enrollment/page.tsx is a full test harness mounted as a real route (/test-enrollment) in the Next.js app router — it ships to production. The page posts mock payment payloads to /api/enroll with recipientAddress: 'TEST_RECIPIENT_ADDRESS', transactionHash: 'TEST_TX_HASH_12345' and status: 'completed'. Anyone who visits the route can insert fake enrollments/payments into the backend database.
Evidence
frontend/src/app/test-enrollment/page.tsx — POST body with fake payment details
Acceptance Criteria
Files to Modify
frontend/src/app/test-enrollment/page.tsx
Priority: High
Overview
frontend/src/app/test-enrollment/page.tsxis a full test harness mounted as a real route (/test-enrollment) in the Next.js app router — it ships to production. The page posts mock payment payloads to/api/enrollwithrecipientAddress: 'TEST_RECIPIENT_ADDRESS',transactionHash: 'TEST_TX_HASH_12345'andstatus: 'completed'. Anyone who visits the route can insert fake enrollments/payments into the backend database.Evidence
frontend/src/app/test-enrollment/page.tsx— POST body with fake payment detailsAcceptance Criteria
Files to Modify
frontend/src/app/test-enrollment/page.tsxPriority: High