UNPKG

html-reporter

Version:

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

59 lines (58 loc) 3.83 kB
import { types as modalTypes } from '../../components/modals'; import actionNames from '../action-names'; import defaultState from '../default-state'; import type { Action, Store } from './types'; import { ThunkAction } from 'redux-thunk'; import { Point } from "../../new-ui/types"; import type { StaticAccepterProgress, StaticAccepterResult } from "../static-accepter-v2"; type StaticAccepterDelayScreenshotPayload = { imageId: string; stateName: string; stateNameImageId: string; }[]; type StaticAccepterDelayScreenshotAction = Action<typeof actionNames.STATIC_ACCEPTER_DELAY_SCREENSHOT, StaticAccepterDelayScreenshotPayload>; export declare const staticAccepterDelayScreenshot: (images: StaticAccepterDelayScreenshotPayload) => StaticAccepterDelayScreenshotAction; type StaticAccepterUndoDelayScreenshotAction = Action<typeof actionNames.STATIC_ACCEPTER_UNDO_DELAY_SCREENSHOT>; export declare const staticAccepterUndoDelayScreenshot: () => StaticAccepterUndoDelayScreenshotAction; type StaticAccepterStageScreenshotAction = Action<typeof actionNames.STATIC_ACCEPTER_STAGE_SCREENSHOT, string[]>; export declare const staticAccepterStageScreenshot: (imageIds: string[]) => StaticAccepterStageScreenshotAction; type StaticAccepterUnstageScreenshotAction = Action<typeof actionNames.STATIC_ACCEPTER_UNSTAGE_SCREENSHOT, string[]>; export declare const staticAccepterUnstageScreenshot: (imageIds: string[]) => StaticAccepterUnstageScreenshotAction; type StaticAccepterOpenConfirmAction = Action<typeof actionNames.OPEN_MODAL, { id: typeof modalTypes.STATIC_ACCEPTER_CONFIRM; type: typeof modalTypes.STATIC_ACCEPTER_CONFIRM; }>; export declare const staticAccepterOpenConfirm: () => StaticAccepterOpenConfirmAction; type StaticAccepterCloseConfirmAction = Action<typeof actionNames.CLOSE_MODAL>; export declare const staticAccepterCloseConfirm: () => StaticAccepterCloseConfirmAction; type StaticAccepterConfig = typeof defaultState['config']['staticImageAccepter']; type StaticAccepterPayload = { id: string; stateNameImageId: string; image: string; path: string; }[]; type StaticAccepterCommitScreenshotOptions = Pick<StaticAccepterConfig, 'repositoryUrl' | 'pullRequestUrl' | 'serviceUrl' | 'moduleUrl' | 'axiosRequestOptions' | 'meta'> & { message: string; }; export interface CommitResult { error?: Error; status?: StaticAccepterResult['status']; } export declare const formatStaticAccepterProgress: ({ phase, completed, total }: StaticAccepterProgress) => string; type StaticAccepterCommitScreenshotAction = Action<typeof actionNames.STATIC_ACCEPTER_COMMIT_SCREENSHOT, string[]>; export declare const staticAccepterCommitScreenshot: (imagesInfo: StaticAccepterPayload, { repositoryUrl, pullRequestUrl, serviceUrl, moduleUrl, message, axiosRequestOptions, meta }: StaticAccepterCommitScreenshotOptions) => ThunkAction<Promise<CommitResult>, Store, void, StaticAccepterCommitScreenshotAction>; type StaticAccepterUpdateToolbarPositionAction = Action<typeof actionNames.STATIC_ACCEPTER_UPDATE_TOOLBAR_OFFSET, { offset: Point; }>; export declare const staticAccepterUpdateToolbarOffset: (payload: { offset: Point; }) => StaticAccepterUpdateToolbarPositionAction; type StaticAccepterUpdateCommitMessageAction = Action<typeof actionNames.STATIC_ACCEPTER_UPDATE_COMMIT_MESSAGE, { commitMessage: string; }>; export declare const staticAccepterUpdateCommitMessage: (payload: { commitMessage: string; }) => StaticAccepterUpdateCommitMessageAction; export type StaticAccepterAction = StaticAccepterDelayScreenshotAction | StaticAccepterUndoDelayScreenshotAction | StaticAccepterStageScreenshotAction | StaticAccepterUnstageScreenshotAction | StaticAccepterCommitScreenshotAction | StaticAccepterUpdateToolbarPositionAction | StaticAccepterUpdateCommitMessageAction; export {};