systelab-components-wdio-test
Version:
Widgets to be use in the E2E Tests based in WDIO
16 lines (15 loc) • 831 B
TypeScript
import { ElementFinder } from "../wdio";
import { Widget } from "../widgets";
import { BasePage } from "../pages";
export declare class ScreenshotUtility {
private static basePath;
private static pixelTolerance;
private static imageMatchingThreshold;
static setBasePath(basePath: string): void;
static setPixelTolerance(pixelTolerance: number): void;
static setImageMatchingThreshold(imageMatchingThreshold: number): void;
static expectPageScreenshot(page: BasePage, fileName: string, pageDescriptiveName: string): Promise<void>;
static expectWidgetScreenshot(widget: Widget, fileName: string, widgetDescriptiveName: string): Promise<void>;
static expectScreenshot(element: ElementFinder, fileName: string, elementDescriptiveName: string): Promise<void>;
private static compareImageFiles;
}