@o3r/testing
Version:
The module provides testing (e2e, unit test) utilities to help you build your own E2E pipeline integrating visual testing.
47 lines • 1.15 kB
TypeScript
import { type FullConfig, type Reporter, type Suite } from '@playwright/test/reporter';
/**
* The screenshot information
*/
export interface ScreenshotInformation {
/**
* The path of the actual screenshot
*/
actual: string;
/**
* The path of the expected screenshot
*/
expected: string;
}
/**
* The report of the visual testing campaign
*/
export type VisualTestingReporterReport = ScreenshotInformation[];
/**
* Configuration for the visual testing reporter
*/
export interface VisualTestingReporterOptions {
/** The output file for the report */
outputFile?: string;
}
/**
* Playwright reporter for visual testing
*/
export declare class VisualTestingPlaywrightReporter implements Reporter {
private suite;
private readonly outputFile;
constructor(options: VisualTestingReporterOptions);
/**
* @inheritdoc
*/
printsToStdio(): boolean;
/**
* @inheritdoc
*/
onBegin(_: FullConfig, suite: Suite): void;
/**
* @inheritdoc
*/
onEnd(): Promise<void>;
}
export default VisualTestingPlaywrightReporter;
//# sourceMappingURL=index.d.ts.map