/** * Playwright test runner module */ import type { TestRunner, TestResult, RuntimeContext } from '../types/index.js'; export interface PlaywrightConfig { configFile?: string; reporter?: string; trace?: boolean; video?: boolean; screenshot?: boolean | string; maxFailures?: number; timeout?: number; workers?: number; } export declare class PlaywrightTestRunner implements TestRunner { private readonly config; private readonly defaultConfig; constructor(config?: PlaywrightConfig); /** * Run Playwright tests */ run(context: RuntimeContext): Promise; /** * Validate Playwright setup */ private validatePlaywrightSetup; /** * Prepare test environment */ private prepareTestEnvironment; /** * Execute Playwright tests */ private executeTests; /** * Parse test results from Playwright output */ private parseTestResults; /** * Copy test artifacts to artifacts directory */ private copyTestArtifacts; /** * Install Playwright browsers if needed */ installBrowsers(workDir: string): Promise; /** * Get supported browsers */ getSupportedBrowsers(workDir: string): Promise; } /** * Create a test runner with default configuration */ export declare function createTestRunner(config?: PlaywrightConfig): TestRunner; //# sourceMappingURL=test-runner.d.ts.map