@wix-pilot/core
Version:
A flexible plugin that drives your tests with human-written commands, enhanced by the power of large language models (LLMs)
14 lines (13 loc) • 669 B
TypeScript
import { TestingFrameworkDriver } from "../../types";
import { SnapshotComparator } from "./comparator/SnapshotComparator";
export declare class SnapshotManager {
private driver;
private snapshotComparator;
private downscaleImage;
constructor(driver: TestingFrameworkDriver, snapshotComparator: SnapshotComparator, downscaleImage?: (imagePath: string) => Promise<string>);
private captureSnapshotsUntilStable;
private compareSnapshots;
private captureDownscaledImage;
captureSnapshotImage(useHighlights: boolean, pollInterval?: number, timeout?: number): Promise<string | undefined>;
captureViewHierarchyString(): Promise<string>;
}