UNPKG

@wdio/image-comparison-core

Version:

Image comparison core module for @wdio/visual-service - WebdriverIO visual testing framework

27 lines 1.23 kB
import type { ChainablePromiseElement } from 'webdriverio'; import type { BaseMobileWebScreenshotOptions, BaseWebScreenshotOptions, Folders } from '../base.interfaces.js'; import type { DefaultOptions } from '../helpers/options.interfaces.js'; import type { ResizeDimensions } from '../methods/images.interfaces.js'; import type { CheckMethodOptions } from './check.interfaces.js'; import type { RectanglesOutput } from '../methods/rectangles.interfaces.js'; export interface SaveElementOptions { wic: DefaultOptions; method: SaveElementMethodOptions; } export interface SaveElementMethodOptions extends Partial<Folders>, BaseWebScreenshotOptions, BaseMobileWebScreenshotOptions { /** * Resize the screenshot to the given dimensions * @default undefined */ resizeDimensions?: ResizeDimensions; } export interface CheckElementMethodOptions extends SaveElementMethodOptions, CheckMethodOptions { } export interface CheckElementOptions { wic: DefaultOptions; method: CheckElementMethodOptions; } /** The Wic element */ export type WicElement = WebdriverIO.Element | ChainablePromiseElement; export type ElementIgnore = RectanglesOutput | WicElement; //# sourceMappingURL=element.interfaces.d.ts.map