/** * Playwright test recorder — generate Playwright test code from crawl data. * * Given a list of crawled screens, generates a minimal Playwright test file that: * 1. Navigates to each screen URL * 2. Verifies the page title * 3. Checks key elements visible on the page * 4. Verifies no console errors (optional) * * This is a "smoke test" generator — not a full interaction recorder. * Output: valid TypeScript Playwright test file ready to run with npx playwright test. */ export interface RecorderScreen { id: string; name: string; url: string; title?: string; heading?: string; markdownWordCount?: number; smartLocator?: { tag: string; text?: string; role?: string; placeholder?: string; nearText?: string; }; } export interface RecorderOpts { baseUrl?: string; includeConsoleCheck?: boolean; testTimeout?: number; projectName?: string; useSmartLocators?: boolean; } export declare function generatePlaywrightTest(screens: RecorderScreen[], opts?: RecorderOpts): string; export declare function generatePlaywrightConfig(opts?: { baseUrl?: string; reportDir?: string; }): string;