html-reporter
Version:
Html-reporter and GUI for viewing and managing results of a tests run. Currently supports Testplane and Hermione.
21 lines (20 loc) • 1.31 kB
TypeScript
import actionNames from "../action-names";
import { Action, AppThunk } from "./types";
import { TestBranch } from "../../../tests-tree-builder/gui";
import { UndoAcceptImagesResult } from "../../../gui/tool-runner";
export type CommitAcceptedImagesToTreeAction = Action<typeof actionNames.COMMIT_ACCEPTED_IMAGES_TO_TREE, TestBranch[]>;
export declare const commitAcceptedImagesToTree: (payload: CommitAcceptedImagesToTreeAction['payload']) => CommitAcceptedImagesToTreeAction;
interface AcceptImagesData {
imageIds: string[];
shouldCommitUpdatesToTree?: boolean;
}
export declare const thunkAcceptImages: ({ imageIds, shouldCommitUpdatesToTree }: AcceptImagesData) => AppThunk<Promise<TestBranch[] | null>>;
export type CommitRevertedImagesToTreeAction = Action<typeof actionNames.COMMIT_REVERTED_IMAGES_TO_TREE, UndoAcceptImagesResult>;
export declare const commitRevertedImagesToTree: (payload: CommitRevertedImagesToTreeAction['payload']) => CommitRevertedImagesToTreeAction;
interface RevertImagesData {
imageIds: string[];
shouldCommitUpdatesToTree?: boolean;
}
export declare const thunkRevertImages: ({ imageIds, shouldCommitUpdatesToTree }: RevertImagesData) => AppThunk;
export type ScreenshotsAction = CommitAcceptedImagesToTreeAction | CommitRevertedImagesToTreeAction;
export {};