html-reporter
Version:
Html-reporter and GUI for viewing and managing results of a tests run. Currently supports Testplane and Hermione.
92 lines (91 loc) • 4.51 kB
TypeScript
declare const _default: import("react-redux").ConnectedComponent<typeof ScreenshotAccepter, import("react-redux").Omit<PropTypes.InferProps<{
view: PropTypes.Requireable<PropTypes.InferProps<{
diffMode: PropTypes.Validator<string>;
}>>;
image: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
id: PropTypes.Validator<string>;
parentId: PropTypes.Validator<string>;
stateName: PropTypes.Validator<string>;
}>>>;
onClose: PropTypes.Validator<(...args: any[]) => any>;
imagesByStateName: PropTypes.Validator<object>;
stateNameImageIds: PropTypes.Validator<(string | null | undefined)[]>;
activeImageIndex: PropTypes.Validator<number>;
staticImageAccepter: PropTypes.Requireable<PropTypes.InferProps<{
enabled: PropTypes.Validator<boolean>;
accepterDelayedImages: PropTypes.Validator<(PropTypes.InferProps<{
imageId: PropTypes.Validator<string>;
stateName: PropTypes.Validator<string>;
stateNameImageId: PropTypes.Validator<string>;
}> | null | undefined)[]>;
acceptableImages: PropTypes.Requireable<{
[x: string]: PropTypes.InferProps<{
id: PropTypes.Validator<string>;
parentId: PropTypes.Validator<string>;
stateName: PropTypes.Validator<string>;
commitStatus: PropTypes.Requireable<import("../../../../constants").TestStatus | null>;
originalStatus: PropTypes.Validator<string>;
}> | null | undefined;
}>;
}>>;
actions: PropTypes.Validator<object>;
}>, "staticImageAccepter" | "view" | "actions" | "stateNameImageIds" | "activeImageIndex" | "imagesByStateName">>;
export default _default;
declare class ScreenshotAccepter extends React.Component<any, any, any> {
static contextType: React.Context<import("../../../modules/yandex-metrika").YandexMetrika | null>;
static propTypes: {
view: PropTypes.Requireable<PropTypes.InferProps<{
diffMode: PropTypes.Validator<string>;
}>>;
image: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
id: PropTypes.Validator<string>;
parentId: PropTypes.Validator<string>;
stateName: PropTypes.Validator<string>;
}>>>;
onClose: PropTypes.Validator<(...args: any[]) => any>;
imagesByStateName: PropTypes.Validator<object>;
stateNameImageIds: PropTypes.Validator<(string | null | undefined)[]>;
activeImageIndex: PropTypes.Validator<number>;
staticImageAccepter: PropTypes.Requireable<PropTypes.InferProps<{
enabled: PropTypes.Validator<boolean>;
accepterDelayedImages: PropTypes.Validator<(PropTypes.InferProps<{
imageId: PropTypes.Validator<string>;
stateName: PropTypes.Validator<string>;
stateNameImageId: PropTypes.Validator<string>;
}> | null | undefined)[]>;
acceptableImages: PropTypes.Requireable<{
[x: string]: PropTypes.InferProps<{
id: PropTypes.Validator<string>;
parentId: PropTypes.Validator<string>;
stateName: PropTypes.Validator<string>;
commitStatus: PropTypes.Requireable<import("../../../../constants").TestStatus | null>;
originalStatus: PropTypes.Validator<string>;
}> | null | undefined;
}>;
}>>;
actions: PropTypes.Validator<object>;
};
constructor(props: any);
acceptedImages: any[];
delayedTestResults: any[];
state: any;
topRef: React.RefObject<any>;
totalImagesCount: number;
analytics: unknown;
componentWillUnmount(): void;
componentDidUpdate(): void;
onRetryChange: (retryIndex: any) => void;
onActiveImageChange: (activeImageIndex: any) => void;
onScreenshotAccept: (imageId: any) => Promise<void>;
onScreenshotUndo: () => Promise<void>;
onShowMeta: () => void;
onClose: () => any;
onCommitChanges: () => void;
_getActiveImages(activeImageIndex?: any, stateNameImageIds?: any): any;
_acceptScreenshot(imageId: any, stateName: any): Promise<any>;
_stageScreenshot(imageId: any, stateName: any): any;
_preloadAdjacentImages(activeImageIndex: any, stateNameImageIds: any, offset?: number): void;
render(): import("react/jsx-runtime").JSX.Element;
}
import PropTypes from 'prop-types';
import React from 'react';