# Scope: Premium Mega Menu E2E Testing Track ## Architecture - **Elysia Backend**: API endpoints served via Elysia. Integrates with Prisma DB. - **Next.js Storefront**: Consumes Elysia API to render homepage and mega menu. - **Cheerio HTML Parser**: Parses rendered HTML from the storefront to verify elements and CSS classes. - **MCP Tools**: Reads and writes menu payloads (specifically the main menu payload containing `rootImage`, `columnImage`, and `hoverImage`). ## Milestones | # | Name | Scope | Dependencies | Status | |---|---|---|---|---| | 1 | Test Strategy & Feature Inventory | Create `TEST_INFRA.md` outlining the test strategy, feature inventory (Tiers 1-4), and coverage. | None | IN_PROGRESS (Conv: 14f59dcd-b8c9-48ff-ac68-1fb5c0200619) | | 2 | Test Infra & DB Seed | Design & implement seed script for DB menu payload and server spawning utility. | M1 | PLANNED | | 3 | Homepage E2E & Cheerio Verification | Verify storefront HTML parsing, image properties, classes, lazy loading for hover images. | M2 | PLANNED | | 4 | Mobile Drawer & MCP E2E Verification | Verify mobile drawer hides complex images; verify MCP tools read/write menu payloads. | M3 | PLANNED | | 5 | Publication & Handoff | Run full test suite, verify clean exit, and publish `TEST_READY.md`. | M4 | PLANNED | ## Interface Contracts ### E2E Test Suite ↔ Test Runner - Command: `bun test tests/mega-menu.test.ts` - Output: Pass/Fail exit code, detailed test reports.