OP

E2E Test Runner

Full pipeline dry run — Trend Ingestion → OpenAI Generation → Render → Meta Publishing → Dashboard

Signal schema validation

Verify all required fields present in signal objects

Platform filter logic

Test reddit/hn/producthunt filter returns correct counts

Velocity sort (desc)

Verify signals sort by velocity24h descending

Signal status transition

Test unused → used transition when linked to script

API route health check

Verify /api/ai/chat-completion is live and validating

OpenAI API key presence

Confirm OPENAI_API_KEY is configured in environment

Prompt builder

Verify all signal fields injected into generation prompt

Script JSON parser

Test markdown code block extraction and JSON parse

Live OpenAI dry run

Real API call to gpt-4o with minimal test prompt

Script status state machine

Validate all allowed/blocked status transitions

Render progress tracking

Verify 0→100% monotonic progress with status update

Scripts table search/filter

Test search and status filter return correct results

Render time KPI calculation

Verify avg render time computed and formatted correctly

Publish route health

Verify /api/meta/publish is live and validating input

Engagement route health

Verify /api/meta/engagement responds correctly

Webhook challenge-response

Test Meta webhook hub.challenge echo verification

Meta API credentials

Verify IG_ACCESS_TOKEN and IG_BUSINESS_ACCOUNT_ID present

Auto-DM keyword matching

Test comment keyword → DM rule matching algorithm

KPI metrics data integrity

Validate all 7 KPI cards have correct values

Pipeline phase strip

Verify 4-phase statuses and active phase count

Toast notification system

Validate 3 event types, colors, timing, and stack cap

Monetization panel

Verify earnings, plays, and conversion rate calculations

Navigation routes

Validate all sidebar routes use correct Next.js paths

Run Log

Run tests to see output…