UNPKG

html-reporter

Version:

Html-reporter and GUI for viewing and managing results of a tests run. Currently supports Testplane and Hermione.

23 lines (22 loc) 937 B
import { CoordBounds } from 'looks-same'; import React from 'react'; import { ImageSize } from "../../../../types"; interface ScreenshotProps { containerClassName?: string; containerStyle?: React.CSSProperties; imageClassName?: string; diffClusters?: CoordBounds[]; /** When cache is disabled, current timestamp is added to image src to prevent it from caching. */ disableCache?: boolean; image: { /** URL or path to the image. Local paths will be automatically encoded. */ path: string; size?: ImageSize; }; style?: React.CSSProperties; onMouseEnter?: (e: React.MouseEvent<HTMLImageElement>) => void; onMouseLeave?: (e: React.MouseEvent<HTMLImageElement>) => void; onMouseMove?: (e: React.MouseEvent<HTMLImageElement>) => void; } export declare const Screenshot: React.ForwardRefExoticComponent<ScreenshotProps & React.RefAttributes<HTMLImageElement>>; export {};