/** * Example: Using the Provider Framework in Reporter * * This file demonstrates how to integrate the provider framework * into the Playwright test reporter. */ import { TestFailure } from '../types'; /** * Example workflow for handling test failures */ export declare class ReporterWorkflow { /** * Initialize all providers at the start of the test run */ static initialize(): Promise; /** * Process a test failure through the complete workflow */ static processTestFailure(failure: TestFailure, sourceCode: Map): Promise; /** * Generate AI-powered fix suggestion */ private static generateAISuggestion; /** * Create a bug/issue for the test failure */ private static createBug; /** * Create a PR with the suggested fix */ private static createFixPR; /** * Save test run to database */ static saveTestRun(summary: any): Promise; /** * Save individual test result to database */ static saveTestResult(testRunId: string, testCase: any): Promise; /** * Send notification about test results */ static sendNotification(summary: any, failures: TestFailure[]): Promise; /** * Cleanup all provider connections */ static cleanup(): Promise; private static buildFixPrompt; private static buildBugDescription; private static buildPRDescription; private static buildNotificationBody; private static determineBugPriority; private static extractCodeFromSuggestion; }