@stencil/core
Version:
A Compiler for Web Components and Progressive Web Apps
23 lines (22 loc) • 783 B
TypeScript
import type { E2EProcessEnv, ScreenshotOptions } from '@stencil/core/internal';
import type * as pd from './puppeteer-declarations';
export declare function initPageScreenshot(page: pd.E2EPageInternal): void;
export declare function pageCompareScreenshot(page: pd.E2EPageInternal, env: E2EProcessEnv, desc: string, testPath: string, opts: ScreenshotOptions): Promise<{
id: string;
desc: string;
imageA: string;
imageB: string;
mismatchedPixels: number;
device: string;
userAgent: string;
width: number;
height: number;
deviceScaleFactor: number;
hasTouch: boolean;
isLandscape: boolean;
isMobile: boolean;
allowableMismatchedPixels: number;
allowableMismatchedRatio: number;
testPath: string;
cacheKey: string;
}>;