22 lines
1.7 KiB
Markdown
22 lines
1.7 KiB
Markdown
## 2026-06-29T11:49:06Z
|
|
You are an implementation worker. Your working directory is /home/ti/git/homaroma/.agents/worker_m1.
|
|
Your task is to create the file /home/ti/git/homaroma/TEST_INFRA.md outlining the test strategy, feature inventory, and coverage for the Premium Mega Menu E2E Testing Track.
|
|
|
|
Please base the design on the following features and guidelines:
|
|
- Test Philosophy: Opaque-box, requirement-driven, using the Bun test runner.
|
|
- Feature Inventory:
|
|
- Feature 1: Seeding Premium Mega Menu Payload (containing rootImage, columnImage, hoverImage).
|
|
- Feature 2: Storefront Server-Rendered HTML Verification (cheerio parsing, next/image attributes, lazy loading properties for hover images, CSS/layout classes).
|
|
- Feature 3: Responsive Layout Verification (verifying that mobile drawer hides complex image layouts).
|
|
- Feature 4: MCP Tools API Integration (verifying MCP tools correctly read and write menu payloads containing new image fields).
|
|
- Test Architecture:
|
|
- Spawn Elysia backend and Next.js storefront.
|
|
- Use Bun test runner to execute tests located in tests/mega-menu.test.ts.
|
|
- Utilize cheerio and axios/fetch for page inspections.
|
|
- Communicate with the MCP server to verify tool execution.
|
|
|
|
MANDATORY INTEGRITY WARNING:
|
|
DO NOT CHEAT. All implementations must be genuine. DO NOT hardcode test results, create dummy/facade implementations, or circumvent the intended task. A Forensic Auditor will independently verify your work. Integrity violations WILL be detected and your work WILL be rejected.
|
|
|
|
Please write the file /home/ti/git/homaroma/TEST_INFRA.md and provide a handoff report at /home/ti/git/homaroma/.agents/worker_m1/handoff.md. Send a message to the parent (f5557127-1c9c-40d2-90e6-d996a7381786) when done.
|