html-reporter
Version:
Html-reporter and GUI for viewing and managing results of a tests run. Currently supports Testplane and Hermione.
77 lines (76 loc) • 3.41 kB
TypeScript
export default class ScreenshotAccepterHeader extends React.Component<any, any, any> {
static propTypes: {
view: PropTypes.Requireable<PropTypes.InferProps<{
diffMode: PropTypes.Validator<string>;
}>>;
images: PropTypes.Requireable<(PropTypes.InferProps<{
id: PropTypes.Requireable<string>;
parentId: PropTypes.Requireable<string>;
}> | null | undefined)[]>;
stateNameImageIds: PropTypes.Requireable<(string | null | undefined)[]>;
retryIndex: PropTypes.Requireable<number>;
activeImageIndex: PropTypes.Requireable<number>;
showMeta: PropTypes.Validator<boolean>;
totalImages: PropTypes.Validator<number>;
acceptedImages: PropTypes.Validator<number>;
onClose: PropTypes.Validator<(...args: any[]) => any>;
onRetryChange: PropTypes.Validator<(...args: any[]) => any>;
onActiveImageChange: PropTypes.Validator<(...args: any[]) => any>;
onScreenshotAccept: PropTypes.Validator<(...args: any[]) => any>;
onScreenshotUndo: PropTypes.Validator<(...args: any[]) => any>;
onShowMeta: PropTypes.Validator<(...args: any[]) => any>;
onCommitChanges: PropTypes.Validator<(...args: any[]) => any>;
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);
_keyMap: {
PREV_SCREENSHOT: string[];
NEXT_SCREENSHOT: string[];
PREV_RETRY: string[];
NEXT_RETRY: string[];
ACCEPT_SCREENSHOT: string[];
UNDO_SCREEN: string;
CLOSE_MODAL: string;
IGNORE_META_UP: string;
IGNORE_META_DOWN: string;
IGNORE_META_S: string;
};
_keyHandlers: {
PREV_SCREENSHOT: (event: any) => void;
NEXT_SCREENSHOT: (event: any) => void;
PREV_RETRY: () => void;
NEXT_RETRY: () => void;
ACCEPT_SCREENSHOT: (event: any) => void;
UNDO_SCREEN: (event: any) => void;
CLOSE_MODAL: any;
IGNORE_META_UP: () => void;
IGNORE_META_DOWN: () => void;
IGNORE_META_S: () => void;
};
handlePrevScreenshot: (event: any) => void;
handleNextScreenshot: (event: any) => void;
handlePrevRetry: () => void;
handleNextRetry: () => void;
handleScreenshotAccept: (event: any) => void;
handleScreenUndo: (event: any) => void;
render(): import("react/jsx-runtime").JSX.Element;
}
import React from 'react';
import PropTypes from 'prop-types';