html-reporter 11.4.0 → 11.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lib/config/index.js +4 -0
- package/build/lib/config/index.js.map +1 -1
- package/build/lib/constants/index.d.ts +2 -0
- package/build/lib/constants/index.js +2 -0
- package/build/lib/constants/index.js.map +1 -1
- package/build/lib/constants/pages.d.ts +8 -0
- package/build/lib/constants/pages.js +14 -0
- package/build/lib/constants/pages.js.map +1 -0
- package/build/lib/static/134.min.js +1 -1
- package/build/lib/static/164.min.js +1 -0
- package/build/lib/static/297.min.js +1 -0
- package/build/lib/static/321.min.js +1 -0
- package/build/lib/static/420.min.js +1 -0
- package/build/lib/static/734.min.css +1 -0
- package/build/lib/static/734.min.js +1 -0
- package/build/lib/static/76.min.js +1 -0
- package/build/lib/static/896.min.css +1 -0
- package/build/lib/static/896.min.js +1 -0
- package/build/lib/static/gui.html +1 -1
- package/build/lib/static/gui.min.js +1 -1
- package/build/lib/static/index.html +1 -1
- package/build/lib/static/new-ui-gui.html +1 -1
- package/build/lib/static/new-ui-report.html +1 -1
- package/build/lib/static/newGui.min.js +1 -1
- package/build/lib/static/newReport.min.js +1 -1
- package/build/lib/static/report.min.js +1 -1
- package/build/lib/static/search-worker.min.js +1 -1
- package/build/lib/tests-tree-builder/base.d.ts +2 -0
- package/build/lib/tests-tree-builder/base.js +4 -2
- package/build/lib/tests-tree-builder/base.js.map +1 -1
- package/build/package.json +1 -1
- package/package.json +1 -1
- package/plugins-sdk/build/lib/static/new-ui/constants/plugins.d.ts +2 -1
- package/plugins-sdk/build/lib/static/new-ui/constants/plugins.d.ts.map +1 -1
- package/plugins-sdk/build/lib/static/new-ui/constants/plugins.js +1 -0
- package/plugins-sdk/build/lib/static/new-ui/constants/plugins.js.map +1 -1
- package/plugins-sdk/build-ui/lib/adapters/config/index.d.ts +7 -0
- package/plugins-sdk/build-ui/lib/adapters/config/playwright.d.ts +24 -0
- package/plugins-sdk/build-ui/lib/adapters/config/testplane.d.ts +13 -0
- package/plugins-sdk/build-ui/lib/adapters/event-handling/testplane/snapshots.d.ts +33 -0
- package/plugins-sdk/build-ui/lib/adapters/test/index.d.ts +25 -0
- package/plugins-sdk/build-ui/lib/adapters/test/playwright.d.ts +23 -0
- package/plugins-sdk/build-ui/lib/adapters/test/testplane.d.ts +19 -0
- package/plugins-sdk/build-ui/lib/adapters/test-collection/index.d.ts +4 -0
- package/plugins-sdk/build-ui/lib/adapters/test-collection/playwright.d.ts +8 -0
- package/plugins-sdk/build-ui/lib/adapters/test-collection/testplane.d.ts +11 -0
- package/plugins-sdk/build-ui/lib/adapters/test-result/playwright.d.ts +82 -0
- package/plugins-sdk/build-ui/lib/adapters/test-result/reporter.d.ts +33 -0
- package/plugins-sdk/build-ui/lib/adapters/test-result/testplane/history.d.ts +9 -0
- package/plugins-sdk/build-ui/lib/adapters/test-result/testplane/index.d.ts +50 -0
- package/plugins-sdk/build-ui/lib/adapters/test-result/utils/index.d.ts +5 -0
- package/plugins-sdk/build-ui/lib/adapters/tool/index.d.ts +34 -0
- package/plugins-sdk/build-ui/lib/adapters/tool/playwright/index.d.ts +46 -0
- package/plugins-sdk/build-ui/lib/adapters/tool/playwright/ipc.d.ts +8 -0
- package/plugins-sdk/build-ui/lib/adapters/tool/playwright/reporter.d.ts +13 -0
- package/plugins-sdk/build-ui/lib/adapters/tool/playwright/transformer.d.ts +1 -0
- package/plugins-sdk/build-ui/lib/adapters/tool/testplane/index.d.ts +55 -0
- package/plugins-sdk/build-ui/lib/adapters/tool/testplane/runner/all-test-runner.d.ts +5 -0
- package/plugins-sdk/build-ui/lib/adapters/tool/testplane/runner/index.d.ts +4 -0
- package/plugins-sdk/build-ui/lib/adapters/tool/testplane/runner/runner.d.ts +9 -0
- package/plugins-sdk/build-ui/lib/adapters/tool/testplane/runner/specific-test-runner.d.ts +9 -0
- package/plugins-sdk/build-ui/lib/adapters/tool/testplane/test-results-handler.d.ts +4 -0
- package/plugins-sdk/build-ui/lib/adapters/tool/types.d.ts +9 -0
- package/plugins-sdk/build-ui/lib/cache.d.ts +8 -0
- package/plugins-sdk/build-ui/lib/config/custom-gui-asserts.d.ts +1 -0
- package/plugins-sdk/build-ui/lib/config/index.d.ts +5 -0
- package/plugins-sdk/build-ui/lib/constants/expand-modes.d.ts +4 -0
- package/plugins-sdk/build-ui/lib/constants/index.d.ts +2 -0
- package/plugins-sdk/build-ui/lib/constants/pages.d.ts +8 -0
- package/plugins-sdk/build-ui/lib/constants/performance-marks.d.ts +9 -0
- package/plugins-sdk/build-ui/lib/db-utils/client.d.ts +50 -0
- package/plugins-sdk/build-ui/lib/gui/api/facade.d.ts +7 -0
- package/plugins-sdk/build-ui/lib/gui/api/index.d.ts +13 -0
- package/plugins-sdk/build-ui/lib/gui/app.d.ts +20 -0
- package/plugins-sdk/build-ui/lib/gui/constants/client-events.d.ts +13 -0
- package/plugins-sdk/build-ui/lib/gui/constants/custom-gui-control-types.d.ts +2 -0
- package/plugins-sdk/build-ui/lib/gui/constants/gui-events.d.ts +7 -0
- package/plugins-sdk/build-ui/lib/gui/constants/index.d.ts +4 -0
- package/plugins-sdk/build-ui/lib/gui/constants/server.d.ts +3 -0
- package/plugins-sdk/build-ui/lib/gui/event-source.d.ts +8 -0
- package/plugins-sdk/build-ui/lib/gui/index.d.ts +18 -0
- package/plugins-sdk/build-ui/lib/gui/listen-with-fallback.d.ts +12 -0
- package/plugins-sdk/build-ui/lib/gui/routes/plugins.d.ts +3 -0
- package/plugins-sdk/build-ui/lib/gui/server.d.ts +18 -0
- package/plugins-sdk/build-ui/lib/gui/tool-runner/index.d.ts +58 -0
- package/plugins-sdk/build-ui/lib/gui/tool-runner/utils.d.ts +7 -0
- package/plugins-sdk/build-ui/lib/image-cache.d.ts +3 -0
- package/plugins-sdk/build-ui/lib/image-store.d.ts +10 -0
- package/plugins-sdk/build-ui/lib/images-info-saver.d.ts +28 -0
- package/plugins-sdk/build-ui/lib/plugin-utils.d.ts +2 -0
- package/plugins-sdk/build-ui/lib/report-builder/gui.d.ts +44 -0
- package/plugins-sdk/build-ui/lib/report-builder/static.d.ts +40 -0
- package/plugins-sdk/build-ui/lib/reporter-helpers.d.ts +7 -0
- package/plugins-sdk/build-ui/lib/static/components/controls/control-button.d.ts +32 -0
- package/plugins-sdk/build-ui/lib/static/components/controls/selects/control.d.ts +21 -0
- package/plugins-sdk/build-ui/lib/static/components/controls/selects/label.d.ts +11 -0
- package/plugins-sdk/build-ui/lib/static/components/details.d.ts +14 -0
- package/plugins-sdk/build-ui/lib/static/components/icons/view-in-browser/index.d.ts +23 -0
- package/plugins-sdk/build-ui/lib/static/components/measurement-context.d.ts +3 -0
- package/plugins-sdk/build-ui/lib/static/components/modals/find-same-diffs.d.ts +13 -0
- package/plugins-sdk/build-ui/lib/static/components/modals/index.d.ts +8 -0
- package/plugins-sdk/build-ui/lib/static/components/modals/screenshot-accepter/body.d.ts +35 -0
- package/plugins-sdk/build-ui/lib/static/components/modals/screenshot-accepter/header.d.ts +76 -0
- package/plugins-sdk/build-ui/lib/static/components/modals/screenshot-accepter/index.d.ts +91 -0
- package/plugins-sdk/build-ui/lib/static/components/modals/screenshot-accepter/meta.d.ts +13 -0
- package/plugins-sdk/build-ui/lib/static/components/modals/static-accepter-confirm/index.d.ts +13 -0
- package/plugins-sdk/build-ui/lib/static/components/progress-bar/index.d.ts +14 -0
- package/plugins-sdk/build-ui/lib/static/components/retry-switcher/index.d.ts +13 -0
- package/plugins-sdk/build-ui/lib/static/components/state/state-fail/index.d.ts +53 -0
- package/plugins-sdk/build-ui/lib/static/modules/action-names.d.ts +85 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/browsers.d.ts +9 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/custom-gui.d.ts +7 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/features.d.ts +8 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/filters.d.ts +22 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/find-same-diffs.d.ts +2 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/group-tests.d.ts +11 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/gui-server-connection.d.ts +8 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/index.d.ts +19 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/lifecycle.d.ts +35 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/loading.d.ts +8 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/modals.d.ts +13 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/notifications.d.ts +5 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/processing.d.ts +7 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/run-tests.d.ts +46 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/screenshots.d.ts +20 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/settings.d.ts +13 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/snapshots.d.ts +17 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/sort-tests.d.ts +13 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/static-accepter.d.ts +55 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/suites-page.d.ts +59 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/suites-tree-state.d.ts +67 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/types.d.ts +33 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/visual-checks-page.d.ts +22 -0
- package/plugins-sdk/build-ui/lib/static/modules/default-state.d.ts +189 -0
- package/plugins-sdk/build-ui/lib/static/modules/load-plugin.d.ts +2 -0
- package/plugins-sdk/build-ui/lib/static/modules/plugins-sdk-ui.d.ts +1 -0
- package/plugins-sdk/build-ui/lib/static/modules/plugins.d.ts +5 -0
- package/plugins-sdk/build-ui/lib/static/modules/query-params.d.ts +10 -0
- package/plugins-sdk/build-ui/lib/static/modules/selectors/index.d.ts +3 -0
- package/plugins-sdk/build-ui/lib/static/modules/selectors/stats.d.ts +3 -0
- package/plugins-sdk/build-ui/lib/static/modules/selectors/tree.d.ts +791 -0
- package/plugins-sdk/build-ui/lib/static/modules/selectors/view.d.ts +2 -0
- package/plugins-sdk/build-ui/lib/static/modules/utils/imageEntity.d.ts +3 -0
- package/plugins-sdk/build-ui/lib/static/modules/utils/index.d.ts +48 -0
- package/plugins-sdk/build-ui/lib/static/modules/utils/pluginMiddlewareRoute.d.ts +2 -0
- package/plugins-sdk/build-ui/lib/static/modules/utils/state.d.ts +15 -0
- package/plugins-sdk/build-ui/lib/static/modules/yandex-metrika.d.ts +47 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/components/AttemptPickerItem/index.d.ts +8 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/components/DiffViewer/ListMode.d.ts +9 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/components/DiffViewer/OnionSkinMode.d.ts +8 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/components/DiffViewer/OnlyDiffMode.d.ts +10 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/components/DiffViewer/SideBySideMode.d.ts +9 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/components/DiffViewer/SideBySideToFitMode.d.ts +14 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/components/DiffViewer/SwipeMode.d.ts +8 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/components/DiffViewer/SwitchMode.d.ts +8 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/components/DiffViewer/types.d.ts +7 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/components/DiffViewer/utils.d.ts +5 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/components/MetaInfo/index.d.ts +18 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/components/Screenshot/DiffCircle.d.ts +13 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/components/Screenshot/index.d.ts +22 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/components/Screenshot/utils.d.ts +2 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/features/suites/components/CollapsibleSection/index.d.ts +18 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/features/suites/components/CollapsibleSection/utils.d.ts +1 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/features/suites/components/SuitesPage/types.d.ts +2 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/features/suites/constants.d.ts +1 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/providers/analytics.d.ts +8 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/store/selectors.d.ts +18 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/types/store.d.ts +10 -6
- package/plugins-sdk/build-ui/lib/static/new-ui/utils/analytics.d.ts +8 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/utils/api.d.ts +3 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/utils/index.d.ts +7 -0
- package/plugins-sdk/build-ui/lib/test-attempt-manager.d.ts +13 -0
- package/plugins-sdk/build-ui/lib/tests-tree-builder/base.d.ts +2 -0
- package/plugins-sdk/build-ui/lib/tests-tree-builder/gui.d.ts +56 -0
- package/plugins-sdk/build-ui/lib/workers/create-workers.d.ts +15 -0
- package/build/lib/static/23.min.js +0 -1
- package/build/lib/static/231.min.js +0 -1
- package/build/lib/static/359.min.js +0 -1
- package/build/lib/static/648.min.js +0 -1
- package/build/lib/static/698.min.css +0 -1
- package/build/lib/static/698.min.js +0 -1
- package/build/lib/static/947.min.js +0 -1
- package/build/lib/static/949.min.css +0 -1
- package/build/lib/static/949.min.js +0 -1
- /package/build/lib/static/{231.min.css → 321.min.css} +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default class ModalSameDiffs extends React.Component<any, any, any> {
|
|
2
|
+
static propTypes: {
|
|
3
|
+
onClose: PropTypes.Validator<(...args: any[]) => any>;
|
|
4
|
+
browserId: PropTypes.Validator<string>;
|
|
5
|
+
equalImages: PropTypes.Validator<number>;
|
|
6
|
+
comparedImages: PropTypes.Validator<number>;
|
|
7
|
+
};
|
|
8
|
+
constructor(props: any);
|
|
9
|
+
constructor(props: any, context: any);
|
|
10
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
}
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export namespace types {
|
|
2
|
+
let FIND_SAME_DIFFS: string;
|
|
3
|
+
let SCREENSHOT_ACCEPTER: string;
|
|
4
|
+
let STATIC_ACCEPTER_CONFIRM: string;
|
|
5
|
+
}
|
|
6
|
+
export { default as FindSameDiffs } from "./find-same-diffs";
|
|
7
|
+
export { default as ScreenshotAccepter } from "./screenshot-accepter";
|
|
8
|
+
export { default as StaticAccepterConfirm } from "./static-accepter-confirm";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: import("react-redux").ConnectedComponent<typeof ScreenshotAccepterBody, import("react-redux").Omit<PropTypes.InferProps<{
|
|
2
|
+
image: PropTypes.Requireable<PropTypes.InferProps<{
|
|
3
|
+
stateName: PropTypes.Validator<string>;
|
|
4
|
+
expectedImg: PropTypes.Requireable<object>;
|
|
5
|
+
actualImg: PropTypes.Requireable<object>;
|
|
6
|
+
diffImg: PropTypes.Requireable<object>;
|
|
7
|
+
error: PropTypes.Requireable<object>;
|
|
8
|
+
parentId: PropTypes.Requireable<string>;
|
|
9
|
+
}>>;
|
|
10
|
+
testName: PropTypes.Requireable<string>;
|
|
11
|
+
browserName: PropTypes.Requireable<string>;
|
|
12
|
+
}>, "browserName" | "testName">>;
|
|
13
|
+
export default _default;
|
|
14
|
+
declare class ScreenshotAccepterBody extends React.Component<any, any, any> {
|
|
15
|
+
static propTypes: {
|
|
16
|
+
image: PropTypes.Requireable<PropTypes.InferProps<{
|
|
17
|
+
stateName: PropTypes.Validator<string>;
|
|
18
|
+
expectedImg: PropTypes.Requireable<object>;
|
|
19
|
+
actualImg: PropTypes.Requireable<object>;
|
|
20
|
+
diffImg: PropTypes.Requireable<object>;
|
|
21
|
+
error: PropTypes.Requireable<object>;
|
|
22
|
+
parentId: PropTypes.Requireable<string>;
|
|
23
|
+
}>>;
|
|
24
|
+
testName: PropTypes.Requireable<string>;
|
|
25
|
+
browserName: PropTypes.Requireable<string>;
|
|
26
|
+
};
|
|
27
|
+
constructor(props: any);
|
|
28
|
+
constructor(props: any, context: any);
|
|
29
|
+
_renderImages(): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
_renderImageBox(image: any): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
_renderTitle(): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
}
|
|
34
|
+
import PropTypes from 'prop-types';
|
|
35
|
+
import React from 'react';
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export default class ScreenshotAccepterHeader extends React.Component<any, any, any> {
|
|
2
|
+
static propTypes: {
|
|
3
|
+
view: PropTypes.Requireable<PropTypes.InferProps<{
|
|
4
|
+
diffMode: PropTypes.Validator<string>;
|
|
5
|
+
}>>;
|
|
6
|
+
images: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
7
|
+
id: PropTypes.Requireable<string>;
|
|
8
|
+
parentId: PropTypes.Requireable<string>;
|
|
9
|
+
}> | null | undefined)[]>;
|
|
10
|
+
stateNameImageIds: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
11
|
+
retryIndex: PropTypes.Requireable<number>;
|
|
12
|
+
activeImageIndex: PropTypes.Requireable<number>;
|
|
13
|
+
showMeta: PropTypes.Validator<boolean>;
|
|
14
|
+
totalImages: PropTypes.Validator<number>;
|
|
15
|
+
acceptedImages: PropTypes.Validator<number>;
|
|
16
|
+
onClose: PropTypes.Validator<(...args: any[]) => any>;
|
|
17
|
+
onRetryChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
18
|
+
onActiveImageChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
19
|
+
onScreenshotAccept: PropTypes.Validator<(...args: any[]) => any>;
|
|
20
|
+
onScreenshotUndo: PropTypes.Validator<(...args: any[]) => any>;
|
|
21
|
+
onShowMeta: PropTypes.Validator<(...args: any[]) => any>;
|
|
22
|
+
onCommitChanges: PropTypes.Validator<(...args: any[]) => any>;
|
|
23
|
+
staticImageAccepter: PropTypes.Requireable<PropTypes.InferProps<{
|
|
24
|
+
enabled: PropTypes.Validator<boolean>;
|
|
25
|
+
accepterDelayedImages: PropTypes.Validator<(PropTypes.InferProps<{
|
|
26
|
+
imageId: PropTypes.Validator<string>;
|
|
27
|
+
stateName: PropTypes.Validator<string>;
|
|
28
|
+
stateNameImageId: PropTypes.Validator<string>;
|
|
29
|
+
}> | null | undefined)[]>;
|
|
30
|
+
acceptableImages: PropTypes.Requireable<{
|
|
31
|
+
[x: string]: PropTypes.InferProps<{
|
|
32
|
+
id: PropTypes.Validator<string>;
|
|
33
|
+
parentId: PropTypes.Validator<string>;
|
|
34
|
+
stateName: PropTypes.Validator<string>;
|
|
35
|
+
commitStatus: PropTypes.Requireable<import("../../../../constants").TestStatus | null>;
|
|
36
|
+
originalStatus: PropTypes.Validator<string>;
|
|
37
|
+
}> | null | undefined;
|
|
38
|
+
}>;
|
|
39
|
+
}>>;
|
|
40
|
+
actions: PropTypes.Validator<object>;
|
|
41
|
+
};
|
|
42
|
+
constructor(props: any);
|
|
43
|
+
_keyMap: {
|
|
44
|
+
PREV_SCREENSHOT: string[];
|
|
45
|
+
NEXT_SCREENSHOT: string[];
|
|
46
|
+
PREV_RETRY: string[];
|
|
47
|
+
NEXT_RETRY: string[];
|
|
48
|
+
ACCEPT_SCREENSHOT: string[];
|
|
49
|
+
UNDO_SCREEN: string;
|
|
50
|
+
CLOSE_MODAL: string;
|
|
51
|
+
IGNORE_META_UP: string;
|
|
52
|
+
IGNORE_META_DOWN: string;
|
|
53
|
+
IGNORE_META_S: string;
|
|
54
|
+
};
|
|
55
|
+
_keyHandlers: {
|
|
56
|
+
PREV_SCREENSHOT: (event: any) => void;
|
|
57
|
+
NEXT_SCREENSHOT: (event: any) => void;
|
|
58
|
+
PREV_RETRY: () => void;
|
|
59
|
+
NEXT_RETRY: () => void;
|
|
60
|
+
ACCEPT_SCREENSHOT: (event: any) => void;
|
|
61
|
+
UNDO_SCREEN: (event: any) => void;
|
|
62
|
+
CLOSE_MODAL: any;
|
|
63
|
+
IGNORE_META_UP: () => void;
|
|
64
|
+
IGNORE_META_DOWN: () => void;
|
|
65
|
+
IGNORE_META_S: () => void;
|
|
66
|
+
};
|
|
67
|
+
handlePrevScreenshot: (event: any) => void;
|
|
68
|
+
handleNextScreenshot: (event: any) => void;
|
|
69
|
+
handlePrevRetry: () => void;
|
|
70
|
+
handleNextRetry: () => void;
|
|
71
|
+
handleScreenshotAccept: (event: any) => void;
|
|
72
|
+
handleScreenUndo: (event: any) => void;
|
|
73
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
74
|
+
}
|
|
75
|
+
import React from 'react';
|
|
76
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
declare const _default: import("react-redux").ConnectedComponent<typeof ScreenshotAccepter, import("react-redux").Omit<PropTypes.InferProps<{
|
|
2
|
+
view: PropTypes.Requireable<PropTypes.InferProps<{
|
|
3
|
+
diffMode: PropTypes.Validator<string>;
|
|
4
|
+
}>>;
|
|
5
|
+
image: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
6
|
+
id: PropTypes.Validator<string>;
|
|
7
|
+
parentId: PropTypes.Validator<string>;
|
|
8
|
+
stateName: PropTypes.Validator<string>;
|
|
9
|
+
}>>>;
|
|
10
|
+
onClose: PropTypes.Validator<(...args: any[]) => any>;
|
|
11
|
+
imagesByStateName: PropTypes.Validator<object>;
|
|
12
|
+
stateNameImageIds: PropTypes.Validator<(string | null | undefined)[]>;
|
|
13
|
+
activeImageIndex: PropTypes.Validator<number>;
|
|
14
|
+
staticImageAccepter: PropTypes.Requireable<PropTypes.InferProps<{
|
|
15
|
+
enabled: PropTypes.Validator<boolean>;
|
|
16
|
+
accepterDelayedImages: PropTypes.Validator<(PropTypes.InferProps<{
|
|
17
|
+
imageId: PropTypes.Validator<string>;
|
|
18
|
+
stateName: PropTypes.Validator<string>;
|
|
19
|
+
stateNameImageId: PropTypes.Validator<string>;
|
|
20
|
+
}> | null | undefined)[]>;
|
|
21
|
+
acceptableImages: PropTypes.Requireable<{
|
|
22
|
+
[x: string]: PropTypes.InferProps<{
|
|
23
|
+
id: PropTypes.Validator<string>;
|
|
24
|
+
parentId: PropTypes.Validator<string>;
|
|
25
|
+
stateName: PropTypes.Validator<string>;
|
|
26
|
+
commitStatus: PropTypes.Requireable<import("../../../../constants").TestStatus | null>;
|
|
27
|
+
originalStatus: PropTypes.Validator<string>;
|
|
28
|
+
}> | null | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
}>>;
|
|
31
|
+
actions: PropTypes.Validator<object>;
|
|
32
|
+
}>, "staticImageAccepter" | "view" | "actions" | "stateNameImageIds" | "activeImageIndex" | "imagesByStateName">>;
|
|
33
|
+
export default _default;
|
|
34
|
+
declare class ScreenshotAccepter extends React.Component<any, any, any> {
|
|
35
|
+
static contextType: React.Context<import("../../../modules/yandex-metrika").YandexMetrika | null>;
|
|
36
|
+
static propTypes: {
|
|
37
|
+
view: PropTypes.Requireable<PropTypes.InferProps<{
|
|
38
|
+
diffMode: PropTypes.Validator<string>;
|
|
39
|
+
}>>;
|
|
40
|
+
image: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
41
|
+
id: PropTypes.Validator<string>;
|
|
42
|
+
parentId: PropTypes.Validator<string>;
|
|
43
|
+
stateName: PropTypes.Validator<string>;
|
|
44
|
+
}>>>;
|
|
45
|
+
onClose: PropTypes.Validator<(...args: any[]) => any>;
|
|
46
|
+
imagesByStateName: PropTypes.Validator<object>;
|
|
47
|
+
stateNameImageIds: PropTypes.Validator<(string | null | undefined)[]>;
|
|
48
|
+
activeImageIndex: PropTypes.Validator<number>;
|
|
49
|
+
staticImageAccepter: PropTypes.Requireable<PropTypes.InferProps<{
|
|
50
|
+
enabled: PropTypes.Validator<boolean>;
|
|
51
|
+
accepterDelayedImages: PropTypes.Validator<(PropTypes.InferProps<{
|
|
52
|
+
imageId: PropTypes.Validator<string>;
|
|
53
|
+
stateName: PropTypes.Validator<string>;
|
|
54
|
+
stateNameImageId: PropTypes.Validator<string>;
|
|
55
|
+
}> | null | undefined)[]>;
|
|
56
|
+
acceptableImages: PropTypes.Requireable<{
|
|
57
|
+
[x: string]: PropTypes.InferProps<{
|
|
58
|
+
id: PropTypes.Validator<string>;
|
|
59
|
+
parentId: PropTypes.Validator<string>;
|
|
60
|
+
stateName: PropTypes.Validator<string>;
|
|
61
|
+
commitStatus: PropTypes.Requireable<import("../../../../constants").TestStatus | null>;
|
|
62
|
+
originalStatus: PropTypes.Validator<string>;
|
|
63
|
+
}> | null | undefined;
|
|
64
|
+
}>;
|
|
65
|
+
}>>;
|
|
66
|
+
actions: PropTypes.Validator<object>;
|
|
67
|
+
};
|
|
68
|
+
constructor(props: any);
|
|
69
|
+
acceptedImages: any[];
|
|
70
|
+
delayedTestResults: any[];
|
|
71
|
+
state: any;
|
|
72
|
+
topRef: React.RefObject<any>;
|
|
73
|
+
totalImagesCount: number;
|
|
74
|
+
analytics: unknown;
|
|
75
|
+
componentWillUnmount(): void;
|
|
76
|
+
componentDidUpdate(): void;
|
|
77
|
+
onRetryChange: (retryIndex: any) => void;
|
|
78
|
+
onActiveImageChange: (activeImageIndex: any) => void;
|
|
79
|
+
onScreenshotAccept: (imageId: any) => Promise<void>;
|
|
80
|
+
onScreenshotUndo: () => Promise<void>;
|
|
81
|
+
onShowMeta: () => void;
|
|
82
|
+
onClose: () => any;
|
|
83
|
+
onCommitChanges: () => void;
|
|
84
|
+
_getActiveImages(activeImageIndex?: any, stateNameImageIds?: any): any;
|
|
85
|
+
_acceptScreenshot(imageId: any, stateName: any): Promise<any>;
|
|
86
|
+
_stageScreenshot(imageId: any, stateName: any): any;
|
|
87
|
+
_preloadAdjacentImages(activeImageIndex: any, stateNameImageIds: any, offset?: number): void;
|
|
88
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
89
|
+
}
|
|
90
|
+
import PropTypes from 'prop-types';
|
|
91
|
+
import React from 'react';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default class ScreenshotAccepterMeta extends React.Component<any, any, any> {
|
|
2
|
+
static propTypes: {
|
|
3
|
+
showMeta: PropTypes.Validator<boolean>;
|
|
4
|
+
image: PropTypes.Requireable<PropTypes.InferProps<{
|
|
5
|
+
parentId: PropTypes.Requireable<string>;
|
|
6
|
+
}>>;
|
|
7
|
+
};
|
|
8
|
+
constructor(props: any);
|
|
9
|
+
constructor(props: any, context: any);
|
|
10
|
+
render(): import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
}
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import * as actions from '../../../modules/actions';
|
|
3
|
+
import type defaultState from '../../../modules/default-state';
|
|
4
|
+
import './style.css';
|
|
5
|
+
interface Props {
|
|
6
|
+
toolName: typeof defaultState['apiValues']['toolName'];
|
|
7
|
+
staticImageAccepter: typeof defaultState['staticImageAccepter'];
|
|
8
|
+
staticAccepterConfig: typeof defaultState['config']['staticImageAccepter'];
|
|
9
|
+
imagesById: typeof defaultState['tree']['images']['byId'];
|
|
10
|
+
actions: typeof actions;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: import("react-redux").ConnectedComponent<React.FC<Props>, import("react-redux").Omit<Props, "staticImageAccepter" | "toolName" | "actions" | "staticAccepterConfig" | "imagesById">>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default ProgressBar;
|
|
2
|
+
declare function ProgressBar({ done, total, dataTestId }: {
|
|
3
|
+
done: any;
|
|
4
|
+
total: any;
|
|
5
|
+
dataTestId: any;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare namespace ProgressBar {
|
|
8
|
+
namespace propTypes {
|
|
9
|
+
let done: PropTypes.Validator<number>;
|
|
10
|
+
let total: PropTypes.Validator<number>;
|
|
11
|
+
let dataTestId: PropTypes.Requireable<string>;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default class RetrySwitcher extends React.Component<any, any, any> {
|
|
2
|
+
static propTypes: {
|
|
3
|
+
resultIds: PropTypes.Validator<(string | null | undefined)[]>;
|
|
4
|
+
retryIndex: PropTypes.Requireable<number>;
|
|
5
|
+
title: PropTypes.Requireable<string>;
|
|
6
|
+
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
7
|
+
};
|
|
8
|
+
constructor(props: any);
|
|
9
|
+
constructor(props: any, context: any);
|
|
10
|
+
render(): import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
}
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
declare const _default: import("react-redux").ConnectedComponent<{
|
|
2
|
+
({ image, diffMode: diffModeProp, isScreenshotAccepterOpened }: {
|
|
3
|
+
image: any;
|
|
4
|
+
diffMode: any;
|
|
5
|
+
isScreenshotAccepterOpened: any;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
propTypes: {
|
|
8
|
+
image: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
9
|
+
expectedImg: PropTypes.Validator<object>;
|
|
10
|
+
actualImg: PropTypes.Validator<object>;
|
|
11
|
+
diffImg: PropTypes.Validator<object>;
|
|
12
|
+
diffClusters: PropTypes.Requireable<any[]>;
|
|
13
|
+
size: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
|
+
width: PropTypes.Requireable<number>;
|
|
15
|
+
height: PropTypes.Requireable<number>;
|
|
16
|
+
}>>;
|
|
17
|
+
}>>>;
|
|
18
|
+
diffMode: PropTypes.Requireable<string>;
|
|
19
|
+
isScreenshotAccepterOpened: PropTypes.Validator<boolean>;
|
|
20
|
+
};
|
|
21
|
+
}, import("react-redux").Omit<Pick<{
|
|
22
|
+
image: any;
|
|
23
|
+
diffMode: any;
|
|
24
|
+
isScreenshotAccepterOpened: any;
|
|
25
|
+
}, never> & Pick<PropTypes.InferProps<{
|
|
26
|
+
image: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
27
|
+
expectedImg: PropTypes.Validator<object>;
|
|
28
|
+
actualImg: PropTypes.Validator<object>;
|
|
29
|
+
diffImg: PropTypes.Validator<object>;
|
|
30
|
+
diffClusters: PropTypes.Requireable<any[]>;
|
|
31
|
+
size: PropTypes.Requireable<PropTypes.InferProps<{
|
|
32
|
+
width: PropTypes.Requireable<number>;
|
|
33
|
+
height: PropTypes.Requireable<number>;
|
|
34
|
+
}>>;
|
|
35
|
+
}>>>;
|
|
36
|
+
diffMode: PropTypes.Requireable<string>;
|
|
37
|
+
isScreenshotAccepterOpened: PropTypes.Validator<boolean>;
|
|
38
|
+
}>, "diffMode" | PropTypes.RequiredKeys<{
|
|
39
|
+
image: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
40
|
+
expectedImg: PropTypes.Validator<object>;
|
|
41
|
+
actualImg: PropTypes.Validator<object>;
|
|
42
|
+
diffImg: PropTypes.Validator<object>;
|
|
43
|
+
diffClusters: PropTypes.Requireable<any[]>;
|
|
44
|
+
size: PropTypes.Requireable<PropTypes.InferProps<{
|
|
45
|
+
width: PropTypes.Requireable<number>;
|
|
46
|
+
height: PropTypes.Requireable<number>;
|
|
47
|
+
}>>;
|
|
48
|
+
}>>>;
|
|
49
|
+
diffMode: PropTypes.Requireable<string>;
|
|
50
|
+
isScreenshotAccepterOpened: PropTypes.Validator<boolean>;
|
|
51
|
+
}>>, "diffMode" | "isScreenshotAccepterOpened">>;
|
|
52
|
+
export default _default;
|
|
53
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
readonly INIT_GUI_REPORT: "INIT_GUI_REPORT";
|
|
3
|
+
readonly INIT_STATIC_REPORT: "INIT_STATIC_REPORT";
|
|
4
|
+
readonly FIN_GUI_REPORT: "FIN_GUI_REPORT";
|
|
5
|
+
readonly FIN_STATIC_REPORT: "FIN_STATIC_REPORT";
|
|
6
|
+
readonly RUN_ALL_TESTS: "RUN_ALL_TESTS";
|
|
7
|
+
readonly RUN_FAILED_TESTS: "RUN_FAILED_TESTS";
|
|
8
|
+
readonly STOP_TESTS: "STOP_TESTS";
|
|
9
|
+
readonly RETRY_SUITE: "RETRY_SUITE";
|
|
10
|
+
readonly RETRY_TEST: "RETRY_TEST";
|
|
11
|
+
readonly SUITE_BEGIN: "SUITE_BEGIN";
|
|
12
|
+
readonly TEST_BEGIN: "TEST_BEGIN";
|
|
13
|
+
readonly TEST_RESULT: "TEST_RESULT";
|
|
14
|
+
readonly TESTS_END: "TESTS_END";
|
|
15
|
+
readonly COMMIT_ACCEPTED_IMAGES_TO_TREE: "COMMIT_ACCEPTED_IMAGES_TO_TREE";
|
|
16
|
+
readonly COMMIT_REVERTED_IMAGES_TO_TREE: "COMMIT_REVERTED_IMAGES_TO_TREE";
|
|
17
|
+
readonly STATIC_ACCEPTER_DELAY_SCREENSHOT: "STATIC_ACCEPTER_DELAY_SCREENSHOT";
|
|
18
|
+
readonly STATIC_ACCEPTER_UNDO_DELAY_SCREENSHOT: "STATIC_ACCEPTER_UNDO_DELAY_SCREENSHOT";
|
|
19
|
+
readonly STATIC_ACCEPTER_STAGE_SCREENSHOT: "STATIC_ACCEPTER_STAGE_SCREENSHOT";
|
|
20
|
+
readonly STATIC_ACCEPTER_UNSTAGE_SCREENSHOT: "STATIC_ACCEPTER_UNSTAGE_SCREENSHOT";
|
|
21
|
+
readonly STATIC_ACCEPTER_COMMIT_SCREENSHOT: "STATIC_ACCEPTER_COMMIT_SCREENSHOT";
|
|
22
|
+
readonly STATIC_ACCEPTER_UPDATE_TOOLBAR_OFFSET: "STATIC_ACCEPTER_UPDATE_TOOLBAR_OFFSET";
|
|
23
|
+
readonly STATIC_ACCEPTER_UPDATE_COMMIT_MESSAGE: "STATIC_ACCEPTER_UPDATE_COMMIT_MESSAGE";
|
|
24
|
+
readonly CLOSE_SECTIONS: "CLOSE_SECTIONS";
|
|
25
|
+
readonly TOGGLE_STATE_RESULT: "TOGGLE_STATE_RESULT";
|
|
26
|
+
readonly TOGGLE_LOADING: "TOGGLE_LOADING";
|
|
27
|
+
readonly OPEN_MODAL: "OPEN_MODAL";
|
|
28
|
+
readonly CLOSE_MODAL: "CLOSE_MODAL";
|
|
29
|
+
readonly CHANGE_TEST_RETRY: "CHANGE_TEST_RETRY";
|
|
30
|
+
readonly VIEW_EXPAND_ALL: "VIEW_EXPAND_ALL";
|
|
31
|
+
readonly VIEW_EXPAND_ERRORS: "VIEW_EXPAND_ERRORS";
|
|
32
|
+
readonly VIEW_EXPAND_RETRIES: "VIEW_EXPAND_RETRIES";
|
|
33
|
+
readonly VIEW_COLLAPSE_ALL: "VIEW_COLLAPSE_ALL";
|
|
34
|
+
readonly CHANGE_VIEW_MODE: "CHANGE_VIEW_MODE";
|
|
35
|
+
readonly VIEW_UPDATE_BASE_HOST: "VIEW_UPDATE_BASE_HOST";
|
|
36
|
+
readonly VIEW_UPDATE_FILTER_BY_NAME: "VIEW_UPDATE_FILTER_BY_NAME";
|
|
37
|
+
readonly VIEW_SET_FILTER_MATCH_CASE: "VIEW_SET_FILTER_MATCH_CASE";
|
|
38
|
+
readonly VIEW_SET_FILTER_USE_REGEX: "VIEW_SET_FILTER_USE_REGEX";
|
|
39
|
+
readonly VIEW_SET_STRICT_MATCH_FILTER: "VIEW_SET_STRICT_MATCH_FILTER";
|
|
40
|
+
readonly SET_DIFF_MODE: "SET_DIFF_MODE";
|
|
41
|
+
readonly PROCESS_BEGIN: "PROCESS_BEGIN";
|
|
42
|
+
readonly PROCESS_END: "PROCESS_END";
|
|
43
|
+
readonly RUN_CUSTOM_GUI_ACTION: "RUN_CUSTOM_GUI_ACTION";
|
|
44
|
+
readonly BROWSERS_SELECTED: "BROWSERS_SELECTED";
|
|
45
|
+
readonly TOGGLE_SUITE_SECTION: "TOGGLE_SUITE_SECTION";
|
|
46
|
+
readonly TOGGLE_BROWSER_SECTION: "TOGGLE_BROWSER_SECTION";
|
|
47
|
+
readonly TOGGLE_TESTS_GROUP: "TOGGLE_TESTS_GROUP";
|
|
48
|
+
readonly TOGGLE_SUITE_CHECKBOX: "TOGGLE_SUITE_CHECKBOX";
|
|
49
|
+
readonly TOGGLE_GROUP_CHECKBOX: "TOGGLE_GROUP_CHECKBOX";
|
|
50
|
+
readonly UPDATE_BOTTOM_PROGRESS_BAR: "UPDATE_BOTTOM_PROGRESS_BAR";
|
|
51
|
+
readonly GROUP_TESTS_BY_KEY: "GROUP_TESTS_BY_KEY";
|
|
52
|
+
readonly GROUP_TESTS_SET_CURRENT_EXPRESSION: "GROUP_TESTS_SET_CURRENT_EXPRESSION";
|
|
53
|
+
readonly TOGGLE_BROWSER_CHECKBOX: "TOGGLE_BROWSER_CHECKBOX";
|
|
54
|
+
readonly SUITES_PAGE_SET_CURRENT_SUITE: "SUITES_PAGE_SET_CURRENT_SUITE";
|
|
55
|
+
readonly SUITES_PAGE_SET_CURRENT_STEP: "SUITES_PAGE_SET_CURRENT_STEP";
|
|
56
|
+
readonly SUITES_PAGE_SET_CURRENT_HIGHLIGHT_STEP: "SUITES_PAGE_SET_CURRENT_HIGHLIGHT_STEP";
|
|
57
|
+
readonly SUITES_PAGE_SET_SECTION_EXPANDED: "SUITES_PAGE_SET_SECTION_EXPANDED";
|
|
58
|
+
readonly SUITES_PAGE_SET_TREE_NODE_EXPANDED: "SUITES_PAGE_SET_TREE_NODE_EXPANDED";
|
|
59
|
+
readonly SUITES_PAGE_SET_ALL_TREE_NODES: "SUITES_PAGE_SET_ALL_TREE_NODES";
|
|
60
|
+
readonly SUITES_PAGE_REVEAL_TREE_NODE: "SUITES_PAGE_REVEAL_TREE_NODE";
|
|
61
|
+
readonly SUITES_PAGE_SET_STEPS_EXPANDED: "SUITES_PAGE_SET_STEPS_EXPANDED";
|
|
62
|
+
readonly SUITES_PAGE_SET_TREE_VIEW_MODE: "SUITES_PAGE_SET_TREE_VIEW_MODE";
|
|
63
|
+
readonly PAGE_SET_SECTION_SIZES: "PAGE_SET_SECTION_SIZES";
|
|
64
|
+
readonly PAGE_SET_BACKUP_SECTION_SIZES: "PAGE_SET_BACKUP_SECTION_SIZES";
|
|
65
|
+
readonly VISUAL_CHECKS_PAGE_SET_CURRENT_NAMED_IMAGE: "VISUAL_CHECKS_PAGE_SET_CURRENT_NAMED_IMAGE";
|
|
66
|
+
readonly VISUAL_CHECKS_TOGGLE_2UP_DIFF_VISIBILITY: "VISUAL_CHECKS_TOGGLE_2UP_DIFF_VISIBILITY";
|
|
67
|
+
readonly VISUAL_CHECKS_SET_2UP_FIT_MODE: "VISUAL_CHECKS_SET_2UP_FIT_MODE";
|
|
68
|
+
readonly VISUAL_CHECKS_SET_DIFF_MODE: "VISUAL_CHECKS_SET_DIFF_MODE";
|
|
69
|
+
readonly UPDATE_LOADING_PROGRESS: "UPDATE_LOADING_PROGRESS";
|
|
70
|
+
readonly UPDATE_LOADING_VISIBILITY: "UPDATE_LOADING_VISIBILITY";
|
|
71
|
+
readonly UPDATE_LOADING_TITLE: "UPDATE_LOADING_TITLE";
|
|
72
|
+
readonly UPDATE_LOADING_IS_IN_PROGRESS: "UPDATE_LOADING_IS_IN_PROGRESS";
|
|
73
|
+
readonly SELECT_ALL: "SELECT_ALL";
|
|
74
|
+
readonly DESELECT_ALL: "DESELECT_ALL";
|
|
75
|
+
readonly SORT_TESTS_SET_CURRENT_EXPRESSION: "SORT_TESTS_SET_CURRENT_EXPRESSION";
|
|
76
|
+
readonly SORT_TESTS_SET_DIRECTION: "SORT_TESTS_SET_DIRECTION";
|
|
77
|
+
readonly SET_GUI_SERVER_CONNECTION_STATUS: "SET_GUI_SERVER_CONNECTION_STATUS";
|
|
78
|
+
readonly SET_AVAILABLE_FEATURES: "SET_AVAILABLE_FEATURES";
|
|
79
|
+
readonly SET_SNAPSHOTS_PLAYER_HIGHLIGHT_TIME: "SET_SNAPSHOTS_PLAYER_HIGHLIGHT_TIME";
|
|
80
|
+
readonly SNAPSHOTS_PLAYER_GO_TO_TIME: "SNAPSHOTS_PLAYER_GO_TO_TIME";
|
|
81
|
+
readonly SNAPSHOTS_PLAYER_TOGGLE_VISIBILITY: "SNAPSHOTS_PLAYER_TOGGLE_VISIBILITY";
|
|
82
|
+
readonly SET_BROWSER_FEATURES: "SET_BROWSER_FEATURES";
|
|
83
|
+
readonly SET_SEARCH_LOADING: "SET_SEARCH_LOADING";
|
|
84
|
+
};
|
|
85
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Action } from "./types";
|
|
2
|
+
import actionNames from "../action-names";
|
|
3
|
+
import { BrowserFeature } from "../../../constants/browser";
|
|
4
|
+
type SetBrowserFeaturesAction = Action<typeof actionNames.SET_BROWSER_FEATURES, {
|
|
5
|
+
browserFeatures: Record<string, BrowserFeature[]>;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const setBrowserFeatures: (payload: SetBrowserFeaturesAction['payload']) => SetBrowserFeaturesAction;
|
|
8
|
+
export type BrowsersAction = SetBrowserFeaturesAction;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import actionNames from "../action-names";
|
|
2
|
+
import { type Action, AppThunk } from "./types";
|
|
3
|
+
import { CustomGuiActionPayload } from "../../../adapters/tool/types";
|
|
4
|
+
export type RunCustomGuiAction = Action<typeof actionNames.RUN_CUSTOM_GUI_ACTION, CustomGuiActionPayload>;
|
|
5
|
+
export declare const runCustomGui: (payload: RunCustomGuiAction['payload']) => RunCustomGuiAction;
|
|
6
|
+
export declare const thunkRunCustomGuiAction: (payload: CustomGuiActionPayload) => AppThunk;
|
|
7
|
+
export type CustomGuiAction = RunCustomGuiAction;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Action } from "./types";
|
|
2
|
+
import actionNames from "../action-names";
|
|
3
|
+
import { Feature } from "../../../constants";
|
|
4
|
+
export type SetAvailableFeaturesAction = Action<typeof actionNames.SET_AVAILABLE_FEATURES, {
|
|
5
|
+
features: Feature[];
|
|
6
|
+
}>;
|
|
7
|
+
export declare const setAvailableFeatures: (payload: SetAvailableFeaturesAction['payload']) => SetAvailableFeaturesAction;
|
|
8
|
+
export type FeaturesAction = SetAvailableFeaturesAction;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import actionNames from "../action-names";
|
|
2
|
+
import type { Action } from "./types";
|
|
3
|
+
import { BrowserItem } from "../../../types";
|
|
4
|
+
import { Page, ViewMode } from "../../../constants";
|
|
5
|
+
interface FilterPayload<T> {
|
|
6
|
+
page: Page;
|
|
7
|
+
data: T;
|
|
8
|
+
}
|
|
9
|
+
export type UpdateNameFilterAction = Action<typeof actionNames.VIEW_UPDATE_FILTER_BY_NAME, FilterPayload<string>>;
|
|
10
|
+
export declare const updateNameFilter: (payload: UpdateNameFilterAction['payload']) => UpdateNameFilterAction;
|
|
11
|
+
export type SetMatchCaseFilterAction = Action<typeof actionNames.VIEW_SET_FILTER_MATCH_CASE, FilterPayload<boolean>>;
|
|
12
|
+
export declare const setMatchCaseFilter: (payload: SetMatchCaseFilterAction['payload']) => SetMatchCaseFilterAction;
|
|
13
|
+
export type SetUseRegexFilterAction = Action<typeof actionNames.VIEW_SET_FILTER_USE_REGEX, FilterPayload<boolean>>;
|
|
14
|
+
export declare const setUseRegexFilter: (payload: SetUseRegexFilterAction['payload']) => SetUseRegexFilterAction;
|
|
15
|
+
export type SelectBrowsersAction = Action<typeof actionNames.BROWSERS_SELECTED, FilterPayload<BrowserItem[]>>;
|
|
16
|
+
export declare const selectBrowsers: (payload: SelectBrowsersAction['payload']) => SelectBrowsersAction;
|
|
17
|
+
export type SetSearchLoading = Action<typeof actionNames.SET_SEARCH_LOADING, boolean>;
|
|
18
|
+
export declare const setSearchLoading: (payload: boolean) => SetSearchLoading;
|
|
19
|
+
export type ChangeViewModeAction = Action<typeof actionNames.CHANGE_VIEW_MODE, FilterPayload<ViewMode>>;
|
|
20
|
+
export declare const changeViewMode: (payload: ChangeViewModeAction['payload']) => ChangeViewModeAction;
|
|
21
|
+
export type FiltersAction = UpdateNameFilterAction | SetMatchCaseFilterAction | SetUseRegexFilterAction | SelectBrowsersAction | ChangeViewModeAction | SetSearchLoading;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import actionNames from "../action-names";
|
|
2
|
+
import { Action } from "./types";
|
|
3
|
+
/** This action is used in old UI only */
|
|
4
|
+
type GroupTestsByKeyAction = Action<typeof actionNames.GROUP_TESTS_BY_KEY, string | undefined>;
|
|
5
|
+
export declare const groupTestsByKey: (payload: string | undefined) => GroupTestsByKeyAction;
|
|
6
|
+
type SetCurrentGroupByExpressionAction = Action<typeof actionNames.GROUP_TESTS_SET_CURRENT_EXPRESSION, {
|
|
7
|
+
expressionIds: string[];
|
|
8
|
+
}>;
|
|
9
|
+
export declare const setCurrentGroupByExpression: (payload: SetCurrentGroupByExpressionAction['payload']) => SetCurrentGroupByExpressionAction;
|
|
10
|
+
export type GroupTestsAction = SetCurrentGroupByExpressionAction | GroupTestsByKeyAction;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Action } from "./types";
|
|
2
|
+
import actionNames from "../action-names";
|
|
3
|
+
type SetGuiServerConnectionStatusAction = Action<typeof actionNames.SET_GUI_SERVER_CONNECTION_STATUS, {
|
|
4
|
+
isConnected: boolean;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const setGuiServerConnectionStatus: (payload: SetGuiServerConnectionStatusAction['payload']) => SetGuiServerConnectionStatusAction;
|
|
7
|
+
export type GuiServerConnectionAction = SetGuiServerConnectionStatusAction;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from './custom-gui';
|
|
2
|
+
export * from './filters';
|
|
3
|
+
export * from './find-same-diffs';
|
|
4
|
+
export * from './group-tests';
|
|
5
|
+
export * from './gui-server-connection';
|
|
6
|
+
export * from './lifecycle';
|
|
7
|
+
export * from './loading';
|
|
8
|
+
export * from './modals';
|
|
9
|
+
export * from './notifications';
|
|
10
|
+
export * from './processing';
|
|
11
|
+
export * from './run-tests';
|
|
12
|
+
export * from './screenshots';
|
|
13
|
+
export * from './settings';
|
|
14
|
+
export * from './sort-tests';
|
|
15
|
+
export * from './static-accepter';
|
|
16
|
+
export * from './suites-page';
|
|
17
|
+
export * from './suites-tree-state';
|
|
18
|
+
export * from './visual-checks-page';
|
|
19
|
+
export * from './browsers';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Database, DbDetails } from "../../../db-utils/client";
|
|
2
|
+
import actionNames from "../action-names";
|
|
3
|
+
import { FinalStats, SkipItem } from "../../../tests-tree-builder/static";
|
|
4
|
+
import { Action, AppThunk } from "./types";
|
|
5
|
+
import { DataForStaticFile } from "../../../server-utils";
|
|
6
|
+
import { GetInitResponse } from "../../../gui/server";
|
|
7
|
+
import { Tree } from "../../../tests-tree-builder/base";
|
|
8
|
+
import { BrowserItem } from "../../../types";
|
|
9
|
+
export type InitGuiReportAction = Action<typeof actionNames.INIT_GUI_REPORT, GetInitResponse & {
|
|
10
|
+
db: Database;
|
|
11
|
+
isNewUi?: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
interface InitGuiReportData {
|
|
14
|
+
isNewUi?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const thunkInitGuiReport: ({ isNewUi }?: InitGuiReportData) => AppThunk;
|
|
17
|
+
export type InitStaticReportAction = Action<typeof actionNames.INIT_STATIC_REPORT, Partial<DataForStaticFile> & {
|
|
18
|
+
db: Database;
|
|
19
|
+
fetchDbDetails: DbDetails[];
|
|
20
|
+
tree: Tree;
|
|
21
|
+
stats: FinalStats | null;
|
|
22
|
+
skips: SkipItem[];
|
|
23
|
+
browsers: BrowserItem[];
|
|
24
|
+
isNewUi?: boolean;
|
|
25
|
+
}>;
|
|
26
|
+
interface InitStaticReportData {
|
|
27
|
+
isNewUi?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare const thunkInitStaticReport: ({ isNewUi }?: InitStaticReportData) => AppThunk;
|
|
30
|
+
export type FinGuiReportAction = Action<typeof actionNames.FIN_GUI_REPORT>;
|
|
31
|
+
export declare const finGuiReport: () => FinGuiReportAction;
|
|
32
|
+
export type FinStaticReportAction = Action<typeof actionNames.FIN_STATIC_REPORT>;
|
|
33
|
+
export declare const finStaticReport: () => FinStaticReportAction;
|
|
34
|
+
export type LifecycleAction = InitGuiReportAction | InitStaticReportAction | FinGuiReportAction | FinStaticReportAction;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import actionNames from "../action-names";
|
|
2
|
+
import type { Action } from "./types";
|
|
3
|
+
export type ToggleLoadingAction = Action<typeof actionNames.TOGGLE_LOADING, {
|
|
4
|
+
active: boolean;
|
|
5
|
+
content?: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const toggleLoading: (payload: ToggleLoadingAction['payload']) => ToggleLoadingAction;
|
|
8
|
+
export type LoadingAction = ToggleLoadingAction;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Action } from "./types";
|
|
2
|
+
import actionNames from "../action-names";
|
|
3
|
+
export type OpenModalAction = Action<typeof actionNames.OPEN_MODAL, {
|
|
4
|
+
id: string;
|
|
5
|
+
type: string;
|
|
6
|
+
data?: unknown;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const openModal: (payload: OpenModalAction['payload']) => OpenModalAction;
|
|
9
|
+
export type CloseModalAction = Action<typeof actionNames.CLOSE_MODAL, {
|
|
10
|
+
id: string;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const closeModal: (payload: CloseModalAction['payload']) => CloseModalAction;
|
|
13
|
+
export type ModalsAction = OpenModalAction | CloseModalAction;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { notify, Status as NotificationStatus, Notification } from 'reapop';
|
|
2
|
+
type UpsertNotificationAction = ReturnType<typeof notify>;
|
|
3
|
+
export declare const createNotification: (id: string, status: NotificationStatus, message: string, props?: Partial<Notification>) => UpsertNotificationAction;
|
|
4
|
+
export declare const createNotificationError: (id: string, error: Error, props?: Partial<Notification>) => UpsertNotificationAction;
|
|
5
|
+
export { dismissNotification } from 'reapop';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import actionNames from "../action-names";
|
|
2
|
+
import { Action } from "./types";
|
|
3
|
+
export type ProcessBeginAction = Action<typeof actionNames.PROCESS_BEGIN>;
|
|
4
|
+
export declare const processBegin: () => ProcessBeginAction;
|
|
5
|
+
export type ProcessEndAction = Action<typeof actionNames.PROCESS_END>;
|
|
6
|
+
export declare const processEnd: () => ProcessEndAction;
|
|
7
|
+
export type ProcessingAction = ProcessBeginAction | ProcessEndAction;
|