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.
Files changed (185) hide show
  1. package/build/lib/config/index.js +4 -0
  2. package/build/lib/config/index.js.map +1 -1
  3. package/build/lib/constants/index.d.ts +2 -0
  4. package/build/lib/constants/index.js +2 -0
  5. package/build/lib/constants/index.js.map +1 -1
  6. package/build/lib/constants/pages.d.ts +8 -0
  7. package/build/lib/constants/pages.js +14 -0
  8. package/build/lib/constants/pages.js.map +1 -0
  9. package/build/lib/static/134.min.js +1 -1
  10. package/build/lib/static/164.min.js +1 -0
  11. package/build/lib/static/297.min.js +1 -0
  12. package/build/lib/static/321.min.js +1 -0
  13. package/build/lib/static/420.min.js +1 -0
  14. package/build/lib/static/734.min.css +1 -0
  15. package/build/lib/static/734.min.js +1 -0
  16. package/build/lib/static/76.min.js +1 -0
  17. package/build/lib/static/896.min.css +1 -0
  18. package/build/lib/static/896.min.js +1 -0
  19. package/build/lib/static/gui.html +1 -1
  20. package/build/lib/static/gui.min.js +1 -1
  21. package/build/lib/static/index.html +1 -1
  22. package/build/lib/static/new-ui-gui.html +1 -1
  23. package/build/lib/static/new-ui-report.html +1 -1
  24. package/build/lib/static/newGui.min.js +1 -1
  25. package/build/lib/static/newReport.min.js +1 -1
  26. package/build/lib/static/report.min.js +1 -1
  27. package/build/lib/static/search-worker.min.js +1 -1
  28. package/build/lib/tests-tree-builder/base.d.ts +2 -0
  29. package/build/lib/tests-tree-builder/base.js +4 -2
  30. package/build/lib/tests-tree-builder/base.js.map +1 -1
  31. package/build/package.json +1 -1
  32. package/package.json +1 -1
  33. package/plugins-sdk/build/lib/static/new-ui/constants/plugins.d.ts +2 -1
  34. package/plugins-sdk/build/lib/static/new-ui/constants/plugins.d.ts.map +1 -1
  35. package/plugins-sdk/build/lib/static/new-ui/constants/plugins.js +1 -0
  36. package/plugins-sdk/build/lib/static/new-ui/constants/plugins.js.map +1 -1
  37. package/plugins-sdk/build-ui/lib/adapters/config/index.d.ts +7 -0
  38. package/plugins-sdk/build-ui/lib/adapters/config/playwright.d.ts +24 -0
  39. package/plugins-sdk/build-ui/lib/adapters/config/testplane.d.ts +13 -0
  40. package/plugins-sdk/build-ui/lib/adapters/event-handling/testplane/snapshots.d.ts +33 -0
  41. package/plugins-sdk/build-ui/lib/adapters/test/index.d.ts +25 -0
  42. package/plugins-sdk/build-ui/lib/adapters/test/playwright.d.ts +23 -0
  43. package/plugins-sdk/build-ui/lib/adapters/test/testplane.d.ts +19 -0
  44. package/plugins-sdk/build-ui/lib/adapters/test-collection/index.d.ts +4 -0
  45. package/plugins-sdk/build-ui/lib/adapters/test-collection/playwright.d.ts +8 -0
  46. package/plugins-sdk/build-ui/lib/adapters/test-collection/testplane.d.ts +11 -0
  47. package/plugins-sdk/build-ui/lib/adapters/test-result/playwright.d.ts +82 -0
  48. package/plugins-sdk/build-ui/lib/adapters/test-result/reporter.d.ts +33 -0
  49. package/plugins-sdk/build-ui/lib/adapters/test-result/testplane/history.d.ts +9 -0
  50. package/plugins-sdk/build-ui/lib/adapters/test-result/testplane/index.d.ts +50 -0
  51. package/plugins-sdk/build-ui/lib/adapters/test-result/utils/index.d.ts +5 -0
  52. package/plugins-sdk/build-ui/lib/adapters/tool/index.d.ts +34 -0
  53. package/plugins-sdk/build-ui/lib/adapters/tool/playwright/index.d.ts +46 -0
  54. package/plugins-sdk/build-ui/lib/adapters/tool/playwright/ipc.d.ts +8 -0
  55. package/plugins-sdk/build-ui/lib/adapters/tool/playwright/reporter.d.ts +13 -0
  56. package/plugins-sdk/build-ui/lib/adapters/tool/playwright/transformer.d.ts +1 -0
  57. package/plugins-sdk/build-ui/lib/adapters/tool/testplane/index.d.ts +55 -0
  58. package/plugins-sdk/build-ui/lib/adapters/tool/testplane/runner/all-test-runner.d.ts +5 -0
  59. package/plugins-sdk/build-ui/lib/adapters/tool/testplane/runner/index.d.ts +4 -0
  60. package/plugins-sdk/build-ui/lib/adapters/tool/testplane/runner/runner.d.ts +9 -0
  61. package/plugins-sdk/build-ui/lib/adapters/tool/testplane/runner/specific-test-runner.d.ts +9 -0
  62. package/plugins-sdk/build-ui/lib/adapters/tool/testplane/test-results-handler.d.ts +4 -0
  63. package/plugins-sdk/build-ui/lib/adapters/tool/types.d.ts +9 -0
  64. package/plugins-sdk/build-ui/lib/cache.d.ts +8 -0
  65. package/plugins-sdk/build-ui/lib/config/custom-gui-asserts.d.ts +1 -0
  66. package/plugins-sdk/build-ui/lib/config/index.d.ts +5 -0
  67. package/plugins-sdk/build-ui/lib/constants/expand-modes.d.ts +4 -0
  68. package/plugins-sdk/build-ui/lib/constants/index.d.ts +2 -0
  69. package/plugins-sdk/build-ui/lib/constants/pages.d.ts +8 -0
  70. package/plugins-sdk/build-ui/lib/constants/performance-marks.d.ts +9 -0
  71. package/plugins-sdk/build-ui/lib/db-utils/client.d.ts +50 -0
  72. package/plugins-sdk/build-ui/lib/gui/api/facade.d.ts +7 -0
  73. package/plugins-sdk/build-ui/lib/gui/api/index.d.ts +13 -0
  74. package/plugins-sdk/build-ui/lib/gui/app.d.ts +20 -0
  75. package/plugins-sdk/build-ui/lib/gui/constants/client-events.d.ts +13 -0
  76. package/plugins-sdk/build-ui/lib/gui/constants/custom-gui-control-types.d.ts +2 -0
  77. package/plugins-sdk/build-ui/lib/gui/constants/gui-events.d.ts +7 -0
  78. package/plugins-sdk/build-ui/lib/gui/constants/index.d.ts +4 -0
  79. package/plugins-sdk/build-ui/lib/gui/constants/server.d.ts +3 -0
  80. package/plugins-sdk/build-ui/lib/gui/event-source.d.ts +8 -0
  81. package/plugins-sdk/build-ui/lib/gui/index.d.ts +18 -0
  82. package/plugins-sdk/build-ui/lib/gui/listen-with-fallback.d.ts +12 -0
  83. package/plugins-sdk/build-ui/lib/gui/routes/plugins.d.ts +3 -0
  84. package/plugins-sdk/build-ui/lib/gui/server.d.ts +18 -0
  85. package/plugins-sdk/build-ui/lib/gui/tool-runner/index.d.ts +58 -0
  86. package/plugins-sdk/build-ui/lib/gui/tool-runner/utils.d.ts +7 -0
  87. package/plugins-sdk/build-ui/lib/image-cache.d.ts +3 -0
  88. package/plugins-sdk/build-ui/lib/image-store.d.ts +10 -0
  89. package/plugins-sdk/build-ui/lib/images-info-saver.d.ts +28 -0
  90. package/plugins-sdk/build-ui/lib/plugin-utils.d.ts +2 -0
  91. package/plugins-sdk/build-ui/lib/report-builder/gui.d.ts +44 -0
  92. package/plugins-sdk/build-ui/lib/report-builder/static.d.ts +40 -0
  93. package/plugins-sdk/build-ui/lib/reporter-helpers.d.ts +7 -0
  94. package/plugins-sdk/build-ui/lib/static/components/controls/control-button.d.ts +32 -0
  95. package/plugins-sdk/build-ui/lib/static/components/controls/selects/control.d.ts +21 -0
  96. package/plugins-sdk/build-ui/lib/static/components/controls/selects/label.d.ts +11 -0
  97. package/plugins-sdk/build-ui/lib/static/components/details.d.ts +14 -0
  98. package/plugins-sdk/build-ui/lib/static/components/icons/view-in-browser/index.d.ts +23 -0
  99. package/plugins-sdk/build-ui/lib/static/components/measurement-context.d.ts +3 -0
  100. package/plugins-sdk/build-ui/lib/static/components/modals/find-same-diffs.d.ts +13 -0
  101. package/plugins-sdk/build-ui/lib/static/components/modals/index.d.ts +8 -0
  102. package/plugins-sdk/build-ui/lib/static/components/modals/screenshot-accepter/body.d.ts +35 -0
  103. package/plugins-sdk/build-ui/lib/static/components/modals/screenshot-accepter/header.d.ts +76 -0
  104. package/plugins-sdk/build-ui/lib/static/components/modals/screenshot-accepter/index.d.ts +91 -0
  105. package/plugins-sdk/build-ui/lib/static/components/modals/screenshot-accepter/meta.d.ts +13 -0
  106. package/plugins-sdk/build-ui/lib/static/components/modals/static-accepter-confirm/index.d.ts +13 -0
  107. package/plugins-sdk/build-ui/lib/static/components/progress-bar/index.d.ts +14 -0
  108. package/plugins-sdk/build-ui/lib/static/components/retry-switcher/index.d.ts +13 -0
  109. package/plugins-sdk/build-ui/lib/static/components/state/state-fail/index.d.ts +53 -0
  110. package/plugins-sdk/build-ui/lib/static/modules/action-names.d.ts +85 -0
  111. package/plugins-sdk/build-ui/lib/static/modules/actions/browsers.d.ts +9 -0
  112. package/plugins-sdk/build-ui/lib/static/modules/actions/custom-gui.d.ts +7 -0
  113. package/plugins-sdk/build-ui/lib/static/modules/actions/features.d.ts +8 -0
  114. package/plugins-sdk/build-ui/lib/static/modules/actions/filters.d.ts +22 -0
  115. package/plugins-sdk/build-ui/lib/static/modules/actions/find-same-diffs.d.ts +2 -0
  116. package/plugins-sdk/build-ui/lib/static/modules/actions/group-tests.d.ts +11 -0
  117. package/plugins-sdk/build-ui/lib/static/modules/actions/gui-server-connection.d.ts +8 -0
  118. package/plugins-sdk/build-ui/lib/static/modules/actions/index.d.ts +19 -0
  119. package/plugins-sdk/build-ui/lib/static/modules/actions/lifecycle.d.ts +35 -0
  120. package/plugins-sdk/build-ui/lib/static/modules/actions/loading.d.ts +8 -0
  121. package/plugins-sdk/build-ui/lib/static/modules/actions/modals.d.ts +13 -0
  122. package/plugins-sdk/build-ui/lib/static/modules/actions/notifications.d.ts +5 -0
  123. package/plugins-sdk/build-ui/lib/static/modules/actions/processing.d.ts +7 -0
  124. package/plugins-sdk/build-ui/lib/static/modules/actions/run-tests.d.ts +46 -0
  125. package/plugins-sdk/build-ui/lib/static/modules/actions/screenshots.d.ts +20 -0
  126. package/plugins-sdk/build-ui/lib/static/modules/actions/settings.d.ts +13 -0
  127. package/plugins-sdk/build-ui/lib/static/modules/actions/snapshots.d.ts +17 -0
  128. package/plugins-sdk/build-ui/lib/static/modules/actions/sort-tests.d.ts +13 -0
  129. package/plugins-sdk/build-ui/lib/static/modules/actions/static-accepter.d.ts +55 -0
  130. package/plugins-sdk/build-ui/lib/static/modules/actions/suites-page.d.ts +59 -0
  131. package/plugins-sdk/build-ui/lib/static/modules/actions/suites-tree-state.d.ts +67 -0
  132. package/plugins-sdk/build-ui/lib/static/modules/actions/types.d.ts +33 -0
  133. package/plugins-sdk/build-ui/lib/static/modules/actions/visual-checks-page.d.ts +22 -0
  134. package/plugins-sdk/build-ui/lib/static/modules/default-state.d.ts +189 -0
  135. package/plugins-sdk/build-ui/lib/static/modules/load-plugin.d.ts +2 -0
  136. package/plugins-sdk/build-ui/lib/static/modules/plugins-sdk-ui.d.ts +1 -0
  137. package/plugins-sdk/build-ui/lib/static/modules/plugins.d.ts +5 -0
  138. package/plugins-sdk/build-ui/lib/static/modules/query-params.d.ts +10 -0
  139. package/plugins-sdk/build-ui/lib/static/modules/selectors/index.d.ts +3 -0
  140. package/plugins-sdk/build-ui/lib/static/modules/selectors/stats.d.ts +3 -0
  141. package/plugins-sdk/build-ui/lib/static/modules/selectors/tree.d.ts +791 -0
  142. package/plugins-sdk/build-ui/lib/static/modules/selectors/view.d.ts +2 -0
  143. package/plugins-sdk/build-ui/lib/static/modules/utils/imageEntity.d.ts +3 -0
  144. package/plugins-sdk/build-ui/lib/static/modules/utils/index.d.ts +48 -0
  145. package/plugins-sdk/build-ui/lib/static/modules/utils/pluginMiddlewareRoute.d.ts +2 -0
  146. package/plugins-sdk/build-ui/lib/static/modules/utils/state.d.ts +15 -0
  147. package/plugins-sdk/build-ui/lib/static/modules/yandex-metrika.d.ts +47 -0
  148. package/plugins-sdk/build-ui/lib/static/new-ui/components/AttemptPickerItem/index.d.ts +8 -0
  149. package/plugins-sdk/build-ui/lib/static/new-ui/components/DiffViewer/ListMode.d.ts +9 -0
  150. package/plugins-sdk/build-ui/lib/static/new-ui/components/DiffViewer/OnionSkinMode.d.ts +8 -0
  151. package/plugins-sdk/build-ui/lib/static/new-ui/components/DiffViewer/OnlyDiffMode.d.ts +10 -0
  152. package/plugins-sdk/build-ui/lib/static/new-ui/components/DiffViewer/SideBySideMode.d.ts +9 -0
  153. package/plugins-sdk/build-ui/lib/static/new-ui/components/DiffViewer/SideBySideToFitMode.d.ts +14 -0
  154. package/plugins-sdk/build-ui/lib/static/new-ui/components/DiffViewer/SwipeMode.d.ts +8 -0
  155. package/plugins-sdk/build-ui/lib/static/new-ui/components/DiffViewer/SwitchMode.d.ts +8 -0
  156. package/plugins-sdk/build-ui/lib/static/new-ui/components/DiffViewer/types.d.ts +7 -0
  157. package/plugins-sdk/build-ui/lib/static/new-ui/components/DiffViewer/utils.d.ts +5 -0
  158. package/plugins-sdk/build-ui/lib/static/new-ui/components/MetaInfo/index.d.ts +18 -0
  159. package/plugins-sdk/build-ui/lib/static/new-ui/components/Screenshot/DiffCircle.d.ts +13 -0
  160. package/plugins-sdk/build-ui/lib/static/new-ui/components/Screenshot/index.d.ts +22 -0
  161. package/plugins-sdk/build-ui/lib/static/new-ui/components/Screenshot/utils.d.ts +2 -0
  162. package/plugins-sdk/build-ui/lib/static/new-ui/features/suites/components/CollapsibleSection/index.d.ts +18 -0
  163. package/plugins-sdk/build-ui/lib/static/new-ui/features/suites/components/CollapsibleSection/utils.d.ts +1 -0
  164. package/plugins-sdk/build-ui/lib/static/new-ui/features/suites/components/SuitesPage/types.d.ts +2 -0
  165. package/plugins-sdk/build-ui/lib/static/new-ui/features/suites/constants.d.ts +1 -0
  166. package/plugins-sdk/build-ui/lib/static/new-ui/providers/analytics.d.ts +8 -0
  167. package/plugins-sdk/build-ui/lib/static/new-ui/store/selectors.d.ts +18 -0
  168. package/plugins-sdk/build-ui/lib/static/new-ui/types/store.d.ts +10 -6
  169. package/plugins-sdk/build-ui/lib/static/new-ui/utils/analytics.d.ts +8 -0
  170. package/plugins-sdk/build-ui/lib/static/new-ui/utils/api.d.ts +3 -0
  171. package/plugins-sdk/build-ui/lib/static/new-ui/utils/index.d.ts +7 -0
  172. package/plugins-sdk/build-ui/lib/test-attempt-manager.d.ts +13 -0
  173. package/plugins-sdk/build-ui/lib/tests-tree-builder/base.d.ts +2 -0
  174. package/plugins-sdk/build-ui/lib/tests-tree-builder/gui.d.ts +56 -0
  175. package/plugins-sdk/build-ui/lib/workers/create-workers.d.ts +15 -0
  176. package/build/lib/static/23.min.js +0 -1
  177. package/build/lib/static/231.min.js +0 -1
  178. package/build/lib/static/359.min.js +0 -1
  179. package/build/lib/static/648.min.js +0 -1
  180. package/build/lib/static/698.min.css +0 -1
  181. package/build/lib/static/698.min.js +0 -1
  182. package/build/lib/static/947.min.js +0 -1
  183. package/build/lib/static/949.min.css +0 -1
  184. package/build/lib/static/949.min.js +0 -1
  185. /package/build/lib/static/{231.min.css → 321.min.css} +0 -0
@@ -0,0 +1,2 @@
1
+ export function getFilteredBrowsers(state: any): any;
2
+ export function getKeyToGroupTestsBy(state: any): any;
@@ -0,0 +1,3 @@
1
+ import { ImageEntity } from '../../new-ui/types/store';
2
+ export declare function preloadImage(url: string): () => void;
3
+ export declare function preloadImageEntity(image: ImageEntity): () => void;
@@ -0,0 +1,48 @@
1
+ export function isSuiteIdle(suite: any): boolean;
2
+ export function isSuiteSuccessful(suite: any): boolean;
3
+ export function isNodeFailed(node: any): boolean;
4
+ export function isNodeStaged(node: any): boolean;
5
+ export function isNodeSuccessful(node: any): boolean;
6
+ /**
7
+ * @param {Object} params
8
+ * @param {string} params.status
9
+ * @param {Object} [params.error]
10
+ * @returns {boolean}
11
+ */
12
+ export function isAcceptable({ status, error }: {
13
+ status: string;
14
+ error?: Object | undefined;
15
+ }): boolean;
16
+ export function isScreenRevertable({ gui, image, isLastResult, isStaticImageAccepterEnabled }: {
17
+ gui: any;
18
+ image: any;
19
+ isLastResult: any;
20
+ isStaticImageAccepterEnabled: any;
21
+ }): any;
22
+ export function dateToLocaleString(date: any): string;
23
+ export function getHttpErrorMessage(error: any): any;
24
+ export function legacyIsTestNameMatch(testName: any, browserName: any, testNameFilter: any, strictMatchFilter: any): boolean;
25
+ export function matchTestName(testName: any, browserName: any, testNameFilter: any, { strictMatchFilter, useMatchCaseFilter, useRegexFilter, isNewUi }: {
26
+ strictMatchFilter: any;
27
+ useMatchCaseFilter?: boolean | undefined;
28
+ useRegexFilter?: boolean | undefined;
29
+ isNewUi?: boolean | undefined;
30
+ } | undefined, fuseSearchFound: any): any;
31
+ export function isBrowserMatchViewMode(browser: any, lastResultStatus: any, viewMode: any, diff?: any): boolean;
32
+ export function shouldShowBrowser(browser: any, filteredBrowsers: any, diff?: any): boolean;
33
+ export function iterateSuites(node: any, { suiteCb, browserCb, browserIdsCb }: {
34
+ suiteCb: any;
35
+ browserCb: any;
36
+ browserIdsCb: any;
37
+ }): any[];
38
+ export function parseKeyToGroupTestsBy(key: any): any[];
39
+ export function getBlobWithRetires(url: any, retriesCount?: number): Promise<any>;
40
+ /**
41
+ * Converts text between English and Russian keyboard layouts.
42
+ * Useful when text was typed with the wrong keyboard layout.
43
+ */
44
+ export function keyboardLayoutConverter(text: any): any;
45
+ import { applyStateUpdate } from './state';
46
+ import { ensureDiffProperty } from './state';
47
+ import { getUpdatedProperty } from './state';
48
+ export { applyStateUpdate, ensureDiffProperty, getUpdatedProperty };
@@ -0,0 +1,2 @@
1
+ export declare const encodePackageNameRoute: (packageName: string) => string;
2
+ export declare const getPluginMiddlewareRoute: (pluginName: string) => string;
@@ -0,0 +1,15 @@
1
+ import { State } from "../../new-ui/types/store";
2
+ import { DeepPartial } from 'redux';
3
+ /**
4
+ * Create new state from old state and diff object
5
+ */
6
+ export declare const applyStateUpdate: (state: State, diff: DeepPartial<State>) => State;
7
+ /**
8
+ * Ensure diff has an object by given path
9
+ * Usually it is being used to pass nested diff property to a helper function
10
+ */
11
+ export declare function ensureDiffProperty(diff: object, path: string[]): void;
12
+ /**
13
+ * @returns Result of _.get(diff, path) if it exists, _.get(state, path) otherwise
14
+ */
15
+ export declare function getUpdatedProperty(state: State, diff: State, path: string[]): unknown;
@@ -0,0 +1,47 @@
1
+ import { SortDirection } from "../new-ui/types/store";
2
+ declare enum YandexMetrikaMethod {
3
+ ReachGoal = "reachGoal",
4
+ Params = "params"
5
+ }
6
+ interface YandexMetrikaSdk {
7
+ (counterId: number, method: YandexMetrikaMethod.ReachGoal, goalId: string, goalParams: Record<string, unknown>): void;
8
+ (counterId: number, method: YandexMetrikaMethod.Params, params: Record<string, unknown>): void;
9
+ }
10
+ declare global {
11
+ interface Window {
12
+ ym?: YandexMetrikaSdk;
13
+ }
14
+ }
15
+ declare enum GoalId {
16
+ ScreenshotAccept = "ACCEPT_SCREENSHOT",
17
+ OpenedScreenshotsAccept = "ACCEPT_OPENED_SCREENSHOTS",
18
+ FeatureUsage = "FEATURE_USAGE"
19
+ }
20
+ interface ScreenshotAcceptData {
21
+ acceptedImagesCount: number;
22
+ }
23
+ interface BasicFeatureUsageData {
24
+ featureName: string;
25
+ }
26
+ interface GroupByFeatureUsageData extends BasicFeatureUsageData {
27
+ groupByKey: string;
28
+ }
29
+ interface SortByFeatureUsageData extends BasicFeatureUsageData {
30
+ sortByKey: string;
31
+ sortDirection: SortDirection;
32
+ }
33
+ interface ChangeTreeViewModeFeatureUsageData extends BasicFeatureUsageData {
34
+ treeViewMode: string;
35
+ }
36
+ type FeatureUsageData = BasicFeatureUsageData | GroupByFeatureUsageData | SortByFeatureUsageData | ChangeTreeViewModeFeatureUsageData;
37
+ export declare class YandexMetrika {
38
+ protected readonly _isEnabled: boolean;
39
+ protected readonly _counterNumber: number;
40
+ constructor(isEnabled: boolean, counterNumber: number);
41
+ protected _registerGoal(goalId: GoalId, goalParams?: {}): void;
42
+ setVisitParams(params: Record<string, unknown>): void;
43
+ trackScreenshotsAccept(params?: ScreenshotAcceptData): void;
44
+ trackOpenedScreenshotsAccept(params: ScreenshotAcceptData): void;
45
+ trackFeatureUsage(params: FeatureUsageData): void;
46
+ }
47
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ export interface AttemptPickerItemProps {
3
+ resultId: string;
4
+ isActive?: boolean;
5
+ onClick?: () => unknown;
6
+ title?: string;
7
+ }
8
+ export declare const AttemptPickerItem: (props: AttemptPickerItemProps) => ReactNode;
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ import { ScreenshotDisplayData } from "./types";
3
+ interface SideBySideToFitModeProps {
4
+ actual: ScreenshotDisplayData;
5
+ diff: ScreenshotDisplayData;
6
+ expected: ScreenshotDisplayData;
7
+ }
8
+ export declare function ListMode(props: SideBySideToFitModeProps): ReactNode;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ import { ImageFile } from "../../../../types";
3
+ interface OnionSkinModeProps {
4
+ expected: ImageFile;
5
+ actual: ImageFile;
6
+ }
7
+ export declare function OnionSkinMode(props: OnionSkinModeProps): ReactNode;
8
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ import { ImageFile } from "../../../../types";
3
+ import { CoordBounds } from 'looks-same';
4
+ interface OnlyDiffModeProps {
5
+ diff: ImageFile & {
6
+ diffClusters?: CoordBounds[];
7
+ };
8
+ }
9
+ export declare function OnlyDiffMode(props: OnlyDiffModeProps): ReactNode;
10
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ import { ScreenshotDisplayData } from './types';
3
+ interface SideBySideToFitModeProps {
4
+ actual: ScreenshotDisplayData;
5
+ diff: ScreenshotDisplayData;
6
+ expected: ScreenshotDisplayData;
7
+ }
8
+ export declare function SideBySideMode(props: SideBySideToFitModeProps): ReactNode;
9
+ export {};
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+ import { ScreenshotDisplayData } from './types';
3
+ interface SideBySideToFitModeProps {
4
+ expected: ScreenshotDisplayData;
5
+ actual: ScreenshotDisplayData;
6
+ diff: ScreenshotDisplayData;
7
+ /**
8
+ * A valid CSS value assignable to height, e.g. `10px` or `calc(100vh - 50px)`.
9
+ * Images will try to fit the `desiredHeight`, but will only shrink no more than 2 times.
10
+ * */
11
+ desiredHeight: string;
12
+ }
13
+ export declare function SideBySideToFitMode(props: SideBySideToFitModeProps): ReactNode;
14
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ import { ImageFile } from "../../../../types";
3
+ interface SwitchModeProps {
4
+ expected: ImageFile;
5
+ actual: ImageFile;
6
+ }
7
+ export declare function SwipeMode(props: SwitchModeProps): ReactNode;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ import { ImageFile } from "../../../../types";
3
+ interface SwitchModeProps {
4
+ expected: ImageFile;
5
+ actual: ImageFile;
6
+ }
7
+ export declare function SwitchMode(props: SwitchModeProps): ReactNode;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ import { CoordBounds } from 'looks-same';
3
+ import { ImageFile } from "../../../../types";
4
+ export interface ScreenshotDisplayData extends ImageFile {
5
+ label?: ReactNode;
6
+ diffClusters?: CoordBounds[];
7
+ }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ImageSize } from "../../../../types";
3
+ export declare const getImageSizeCssVars: (size: ImageSize) => React.CSSProperties;
4
+ export declare const getDisplayedDiffPercentValue: (diffRatio: number) => string;
5
+ export declare const getDisplayedDiffPixelsCountValue: (diffPixels: number) => string;
@@ -0,0 +1,18 @@
1
+ import { ReactNode } from 'react';
2
+ import { ResultEntity } from "../../types/store";
3
+ import { HtmlReporterValues } from "../../../../plugin-api";
4
+ import { ReporterConfig } from "../../../../types";
5
+ export interface MetaInfoProps {
6
+ resultId: string;
7
+ qa?: string;
8
+ }
9
+ interface MetaInfoInternalProps extends MetaInfoProps {
10
+ result: ResultEntity;
11
+ testName: string;
12
+ metaInfoBaseUrls: ReporterConfig['metaInfoBaseUrls'];
13
+ apiValues: Pick<HtmlReporterValues, 'extraItems' | 'metaInfoExtenders'>;
14
+ baseHost: string;
15
+ }
16
+ declare function MetaInfoInternal(props: MetaInfoInternalProps): ReactNode;
17
+ export declare const MetaInfo: import("react-redux").ConnectedComponent<typeof MetaInfoInternal, import("react-redux").Omit<MetaInfoInternalProps, "result" | "baseHost" | "metaInfoBaseUrls" | "apiValues" | "testName"> & MetaInfoProps>;
18
+ export {};
@@ -0,0 +1,13 @@
1
+ import { CoordBounds } from 'looks-same';
2
+ import React, { RefObject } from 'react';
3
+ import { ImageSize } from "../../../../types";
4
+ interface DiffCircleProps {
5
+ diffImageOriginalSize: ImageSize;
6
+ diffImageRef: RefObject<HTMLElement>;
7
+ diffCluster: CoordBounds;
8
+ }
9
+ export interface DiffCircleHandle {
10
+ pulse: () => void;
11
+ }
12
+ export declare const DiffCircle: React.ForwardRefExoticComponent<DiffCircleProps & React.RefAttributes<DiffCircleHandle>>;
13
+ export {};
@@ -0,0 +1,22 @@
1
+ import { CoordBounds } from 'looks-same';
2
+ import React from 'react';
3
+ import { ImageSize } from "../../../../types";
4
+ interface ScreenshotProps {
5
+ containerClassName?: string;
6
+ containerStyle?: React.CSSProperties;
7
+ imageClassName?: string;
8
+ diffClusters?: CoordBounds[];
9
+ /** When cache is disabled, current timestamp is added to image src to prevent it from caching. */
10
+ disableCache?: boolean;
11
+ image: {
12
+ /** URL or path to the image. Local paths will be automatically encoded. */
13
+ path: string;
14
+ size?: ImageSize;
15
+ };
16
+ style?: React.CSSProperties;
17
+ onMouseEnter?: (e: React.MouseEvent<HTMLImageElement>) => void;
18
+ onMouseLeave?: (e: React.MouseEvent<HTMLImageElement>) => void;
19
+ onMouseMove?: (e: React.MouseEvent<HTMLImageElement>) => void;
20
+ }
21
+ export declare const Screenshot: React.ForwardRefExoticComponent<ScreenshotProps & React.RefAttributes<HTMLImageElement>>;
22
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare function addTimestamp(imagePath: string): string;
2
+ export declare function encodePathSegments(imagePath: string): string;
@@ -0,0 +1,18 @@
1
+ import { ReactNode } from 'react';
2
+ import * as actions from "../../../../../modules/actions";
3
+ interface CollapsibleSectionProps {
4
+ id: string;
5
+ title: string;
6
+ children?: ReactNode;
7
+ className?: string;
8
+ defaultExpanded?: boolean;
9
+ onUpdate?: (expanded: boolean) => void;
10
+ }
11
+ interface CollapsibleSectionInternalProps extends CollapsibleSectionProps {
12
+ sectionId: string;
13
+ expanded: boolean;
14
+ actions: typeof actions;
15
+ }
16
+ export declare function CollapsibleSectionInternal(props: CollapsibleSectionInternalProps): ReactNode;
17
+ export declare const CollapsibleSection: import("react-redux").ConnectedComponent<typeof CollapsibleSectionInternal, import("react-redux").Omit<CollapsibleSectionInternalProps, "expanded" | "actions" | "sectionId"> & CollapsibleSectionProps>;
18
+ export {};
@@ -0,0 +1 @@
1
+ export declare const getSectionId: (_browserId: string, _attemptIndex: number, id: string) => string;
@@ -18,6 +18,8 @@ export interface TreeViewItemData {
18
18
  images?: ImageEntity[];
19
19
  parentData?: TreeViewItemData;
20
20
  skipReason?: string;
21
+ browserId?: string;
22
+ stateName?: string;
21
23
  }
22
24
  export interface TreeRoot {
23
25
  isRoot: true;
@@ -0,0 +1 @@
1
+ export declare const MIN_SECTION_SIZE_PERCENT = 25;
@@ -0,0 +1,8 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { YandexMetrika } from "../../modules/yandex-metrika";
3
+ export declare const AnalyticsContext: React.Context<YandexMetrika | null>;
4
+ interface AnalyticsProviderProps {
5
+ children: React.ReactNode;
6
+ }
7
+ export declare const AnalyticsProvider: ({ children }: AnalyticsProviderProps) => ReactNode;
8
+ export {};
@@ -0,0 +1,18 @@
1
+ import { State, BrowserEntity, ImageEntity, ResultEntity, SuiteEntity, SuiteState, BrowserState, GroupEntity, TreeViewMode } from "../types/store";
2
+ export declare const getToolName: (state: State) => string;
3
+ export declare const getAllRootSuiteIds: (state: State) => string[];
4
+ export declare const getAllRootGroupIds: (state: State) => string[];
5
+ export declare const getGroups: (state: State) => Record<string, GroupEntity>;
6
+ export declare const getSuites: (state: State) => Record<string, SuiteEntity>;
7
+ export declare const getSuitesState: (state: State) => Record<string, SuiteState>;
8
+ export declare const getBrowsers: (state: State) => Record<string, BrowserEntity>;
9
+ export declare const getBrowsersState: (state: State) => Record<string, BrowserState>;
10
+ export declare const getAllBrowserIds: (state: State) => string[];
11
+ export declare const getResults: (state: State) => Record<string, ResultEntity>;
12
+ export declare const getImages: (state: State) => Record<string, ImageEntity>;
13
+ export declare const getIsInitialized: (state: State) => boolean;
14
+ export declare const getIsStaticImageAccepterEnabled: (state: State) => boolean;
15
+ export declare const getIsGui: (state: State) => boolean;
16
+ export declare const getTreeViewMode: (state: State) => TreeViewMode;
17
+ export declare const getSortTestsData: (state: State) => State['app']['sortTestsData'];
18
+ export declare const getAreCheckboxesNeeded: (state: State) => boolean;
@@ -1,5 +1,6 @@
1
+ /// <reference types="gemini-testing__sql.js" />
1
2
  import { CoordBounds } from 'looks-same';
2
- import { BrowserFeature, DiffModeId, Feature, TestStatus, ViewMode, TwoUpFitMode } from "../../../constants";
3
+ import { Page, BrowserFeature, DiffModeId, Feature, TestStatus, ViewMode, TwoUpFitMode } from "../../../constants";
3
4
  import { Attachment, BrowserItem, ImageFile, RefImageFile, StoreReporterConfig, TestError, TestStepCompressed } from "../../../types";
4
5
  import { HtmlReporterValues } from "../../../plugin-api";
5
6
  import { Point } from "./index";
@@ -8,6 +9,7 @@ import { CheckStatus } from "../../../constants/checked-statuses";
8
9
  import { EntityType } from "../features/suites/components/SuitesPage/types";
9
10
  import { DbDetails } from "../../../db-utils/common";
10
11
  import { Stats, PerBrowserStats } from "../../../tests-tree-builder/static";
12
+ import type { Database } from '@gemini-testing/sql.js';
11
13
  export interface GroupEntity {
12
14
  id: string;
13
15
  /** @note For cosmetic purposes, grouping key. For example: "url". */
@@ -20,6 +22,7 @@ export interface GroupEntity {
20
22
  }
21
23
  export interface SuiteEntityNode {
22
24
  id: string;
25
+ hash: string;
23
26
  name: string;
24
27
  parentId: string | null;
25
28
  status: TestStatus;
@@ -28,6 +31,7 @@ export interface SuiteEntityNode {
28
31
  }
29
32
  export interface SuiteEntityLeaf {
30
33
  id: string;
34
+ hash: string;
31
35
  name: string;
32
36
  parentId: string | null;
33
37
  status: TestStatus;
@@ -150,6 +154,7 @@ export interface TreeEntity {
150
154
  suites: {
151
155
  allRootIds: string[];
152
156
  byId: Record<string, SuiteEntity>;
157
+ byHash: Record<string, SuiteEntity>;
153
158
  stateById: Record<string, SuiteState>;
154
159
  };
155
160
  groups: {
@@ -204,10 +209,6 @@ export interface SnapshotsPlayerHighlightState {
204
209
  highlightEndTime: number;
205
210
  goToTime: number;
206
211
  }
207
- export declare enum Page {
208
- suitesPage = "suitesPage",
209
- visualChecksPage = "visualChecksPage"
210
- }
211
212
  export interface State {
212
213
  app: {
213
214
  isNewUi: boolean;
@@ -227,7 +228,8 @@ export interface State {
227
228
  filteredBrowsers: BrowserItem[];
228
229
  };
229
230
  [Page.visualChecksPage]: {
230
- currentNamedImageId: string | null;
231
+ currentBrowserId: string | null;
232
+ stateName: string | null;
231
233
  nameFilter: string;
232
234
  useRegexFilter: boolean;
233
235
  useMatchCaseFilter: boolean;
@@ -315,6 +317,8 @@ export interface State {
315
317
  all: Stats | Record<string, never>;
316
318
  perBrowser: PerBrowserStats | undefined;
317
319
  } | null;
320
+ db?: Database;
321
+ plugins: Record<string, unknown>;
318
322
  }
319
323
  declare module 'react-redux' {
320
324
  interface DefaultRootState extends State {
@@ -0,0 +1,8 @@
1
+ import { DataForStaticFile } from "../../../server-utils";
2
+ declare global {
3
+ interface Window {
4
+ data?: DataForStaticFile;
5
+ }
6
+ }
7
+ export declare const getAreAnalyticsEnabled: () => boolean;
8
+ export declare const getCounterId: () => number;
@@ -0,0 +1,3 @@
1
+ import { ApiErrorResponse, UpdateTimeTravelSettingsRequest, UpdateTimeTravelSettingsResponse } from "../../../types";
2
+ export declare const isApiErrorResponse: (response: UpdateTimeTravelSettingsResponse) => response is ApiErrorResponse;
3
+ export declare const updateTimeTravelSettings: (params: UpdateTimeTravelSettingsRequest) => Promise<UpdateTimeTravelSettingsResponse>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { TestStatus } from "../../../constants";
3
+ import { ImageFile } from "../../../types";
4
+ export declare const getIconByStatus: (status: TestStatus) => React.JSX.Element;
5
+ export declare const getImageDisplayedSize: (image: ImageFile) => string;
6
+ export declare const stringify: (value: unknown) => string;
7
+ export declare const makeLinksClickable: (text: string) => React.JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { ReporterTestResult } from './adapters/test-result';
2
+ import { TestStatus } from './constants';
3
+ type TestSpec = Pick<ReporterTestResult, 'fullName' | 'browserId'>;
4
+ export declare class TestAttemptManager {
5
+ private _attempts;
6
+ constructor();
7
+ removeAttempt(testResult: TestSpec): number;
8
+ getCurrentAttempt(testResult: TestSpec): number;
9
+ registerAttempt(testResult: TestSpec, status: TestStatus, index?: number | null): number;
10
+ private _getHash;
11
+ private _getData;
12
+ }
13
+ export {};
@@ -23,6 +23,7 @@ interface TreeBrowser {
23
23
  export interface TreeSuite {
24
24
  status?: TestStatus;
25
25
  id: string;
26
+ hash: string;
26
27
  parentId: string | null;
27
28
  name: string;
28
29
  suitePath: string[];
@@ -37,6 +38,7 @@ export type TreeImage = {
37
38
  export interface Tree {
38
39
  suites: {
39
40
  byId: Record<string, TreeSuite>;
41
+ byHash: Record<string, TreeSuite>;
40
42
  allIds: string[];
41
43
  allRootIds: string[];
42
44
  };
@@ -0,0 +1,56 @@
1
+ import { BaseTestsTreeBuilder, Tree, TreeImage, TreeTestResult } from './base';
2
+ import { TestStatus } from '../constants';
3
+ import { ImageFile } from '../types';
4
+ interface SuiteBranch {
5
+ id: string;
6
+ status?: TestStatus;
7
+ }
8
+ export interface TestBranch {
9
+ result: TreeTestResult;
10
+ images: TreeImage[];
11
+ suites: SuiteBranch[];
12
+ }
13
+ export interface TestRefUpdateData {
14
+ browserId: string;
15
+ error?: TreeTestResult['error'];
16
+ suite: {
17
+ path: string[];
18
+ };
19
+ state: {
20
+ name: string;
21
+ };
22
+ metaInfo: TreeTestResult['metaInfo'];
23
+ imagesInfo: {
24
+ stateName: string;
25
+ actualImg: ImageFile;
26
+ status: TestStatus;
27
+ }[];
28
+ attempt: number;
29
+ }
30
+ export type TestEqualDiffsData = TreeImage & {
31
+ browserName: string;
32
+ };
33
+ interface TestUndoRefUpdateData {
34
+ imageId: string;
35
+ status: TestStatus;
36
+ timestamp: number;
37
+ previousImage: TreeImage | null;
38
+ previousImageId: string | null;
39
+ shouldRemoveResult: boolean;
40
+ }
41
+ export declare class GuiTestsTreeBuilder extends BaseTestsTreeBuilder {
42
+ getImagesInfo(testId: string): TreeImage[];
43
+ getTestBranch(id: string): TestBranch;
44
+ getTestsDataToUpdateRefs(imageIds: string[]): TestRefUpdateData[];
45
+ getImageDataToFindEqualDiffs(imageIds: string[]): TestEqualDiffsData[];
46
+ getResultDataToUnacceptImage(resultId: string, stateName: string): TestUndoRefUpdateData | null;
47
+ reuseTestsTree(testsTree: Tree): void;
48
+ updateImageInfo(imageId: string, imageInfo?: TreeImage | null): TreeImage;
49
+ removeTestResult(resultId: string): void;
50
+ private _removeImagesById;
51
+ private _reuseBrowser;
52
+ private _reuseResults;
53
+ private _reuseImages;
54
+ _reuseSuiteStatus(testsTree: Tree, suiteId?: string | null): void;
55
+ }
56
+ export {};
@@ -0,0 +1,15 @@
1
+ /// <reference types="node" />
2
+ import type { EventEmitter } from 'events';
3
+ type MapOfMethods<T extends ReadonlyArray<string>> = {
4
+ [K in T[number]]: (...args: Array<unknown>) => Promise<unknown> | unknown;
5
+ };
6
+ export type RegisterWorkers<T extends ReadonlyArray<string>> = EventEmitter & MapOfMethods<T>;
7
+ export declare const createWorkers: (runner: {
8
+ registerWorkers: (workerFilePath: string, exportedMethods: string[]) => RegisterWorkers<[
9
+ 'saveDiffTo'
10
+ ]>;
11
+ }) => RegisterWorkers<[
12
+ 'saveDiffTo'
13
+ ]>;
14
+ export type CreateWorkersRunner = Parameters<typeof createWorkers>[0];
15
+ export {};