html-reporter 11.12.0 → 11.13.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/constants/local-storage.d.ts +1 -0
- package/build/lib/constants/local-storage.js +2 -1
- package/build/lib/constants/local-storage.js.map +1 -1
- package/build/lib/gui/app.d.ts +1 -0
- package/build/lib/gui/app.js +4 -0
- package/build/lib/gui/app.js.map +1 -1
- package/build/lib/gui/server.js +9 -0
- package/build/lib/gui/server.js.map +1 -1
- package/build/lib/gui/tool-runner/index.d.ts +2 -1
- package/build/lib/gui/tool-runner/index.js +10 -2
- package/build/lib/gui/tool-runner/index.js.map +1 -1
- package/build/lib/report-builder/gui.d.ts +2 -0
- package/build/lib/report-builder/gui.js +11 -0
- package/build/lib/report-builder/gui.js.map +1 -1
- package/build/lib/report-builder/static.d.ts +1 -0
- package/build/lib/report-builder/static.js +3 -0
- package/build/lib/report-builder/static.js.map +1 -1
- package/build/lib/sqlite-client.d.ts +2 -1
- package/build/lib/sqlite-client.js +12 -0
- package/build/lib/sqlite-client.js.map +1 -1
- package/build/lib/static/343.min.js +1 -1
- package/build/lib/static/516.min.js +1 -1
- package/build/lib/static/685.min.css +1 -1
- package/build/lib/static/685.min.js +1 -1
- package/build/lib/static/964.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/package.json +1 -1
- package/package.json +1 -1
- package/plugins-sdk/build-ui/lib/constants/local-storage.d.ts +1 -0
- package/plugins-sdk/build-ui/lib/gui/app.d.ts +1 -0
- package/plugins-sdk/build-ui/lib/gui/tool-runner/index.d.ts +2 -1
- package/plugins-sdk/build-ui/lib/report-builder/gui.d.ts +2 -0
- package/plugins-sdk/build-ui/lib/report-builder/static.d.ts +1 -0
- package/plugins-sdk/build-ui/lib/sqlite-client.d.ts +2 -1
- package/plugins-sdk/build-ui/lib/static/modules/action-names.d.ts +1 -0
- package/plugins-sdk/build-ui/lib/static/modules/actions/filters.d.ts +3 -1
- package/plugins-sdk/build-ui/lib/static/modules/actions/lifecycle.d.ts +1 -0
- package/plugins-sdk/build-ui/lib/static/modules/selectors/tree.d.ts +4 -0
- package/plugins-sdk/build-ui/lib/static/new-ui/types/store.d.ts +3 -0
- package/build/lib/static/190.min.js +0 -1
- /package/build/lib/static/{190.min.css → 964.min.css} +0 -0
|
@@ -40,6 +40,7 @@ export declare class ToolRunner {
|
|
|
40
40
|
get tree(): ToolRunnerTree | null;
|
|
41
41
|
initialize(): Promise<void>;
|
|
42
42
|
_readTests(): Promise<TestCollectionAdapter>;
|
|
43
|
+
refreshTests(): Promise<void>;
|
|
43
44
|
protected _ensureReportBuilder(): GuiReportBuilder;
|
|
44
45
|
protected _ensureTestCollection(): TestCollectionAdapter;
|
|
45
46
|
finalize(): Promise<void>;
|
|
@@ -55,7 +56,7 @@ export declare class ToolRunner {
|
|
|
55
56
|
protected _getTestAdapterById(updateData: TestRefUpdateData): TestAdapter;
|
|
56
57
|
protected _prepareAssertViewResults(imagesInfo: TestRefUpdateData['imagesInfo'], testAdapter: TestAdapter): AssertViewResult[];
|
|
57
58
|
protected _handleReferenceUpdate(testResult: ReporterTestResult, imageInfo: ImageInfoUpdated, state: string): void;
|
|
58
|
-
_fillTestsTree(): Promise<void>;
|
|
59
|
+
_fillTestsTree(tree?: Tree): Promise<void>;
|
|
59
60
|
protected _loadDataFromDatabase(): Promise<Tree | null>;
|
|
60
61
|
protected _resolveImgPath(imgPath: string): string;
|
|
61
62
|
}
|
|
@@ -33,6 +33,8 @@ export declare class GuiReportBuilder extends StaticReportBuilder {
|
|
|
33
33
|
setApiValues(values: HtmlReporterValues): this;
|
|
34
34
|
reuseTestsTree(tree: Tree): void;
|
|
35
35
|
getResult(): GuiReportBuilderResult;
|
|
36
|
+
resetTree(): void;
|
|
37
|
+
buildTreeFromCurrentDb(): Tree;
|
|
36
38
|
getTestBranch(id: string): TestBranch;
|
|
37
39
|
getTestsDataToUpdateRefs(imageIds: string[]): TestRefUpdateData[];
|
|
38
40
|
getImageDataToFindEqualDiffs(imageIds: string[]): TestEqualDiffsData[];
|
|
@@ -21,6 +21,7 @@ export declare class StaticReportBuilder {
|
|
|
21
21
|
private _workers?;
|
|
22
22
|
static create<T extends StaticReportBuilder>(this: new (options: StaticReportBuilderOptions) => T, options: StaticReportBuilderOptions): T;
|
|
23
23
|
constructor({ htmlReporter, reporterConfig, dbClient, imagesInfoSaver }: StaticReportBuilderOptions);
|
|
24
|
+
resetAttemps(): void;
|
|
24
25
|
saveStaticFiles(): Promise<void>;
|
|
25
26
|
registerWorkers(workers: RegisterWorkers<['saveDiffTo']>): void;
|
|
26
27
|
registerAttempt(testInfo: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="gemini-testing__sql.js" />
|
|
2
2
|
import type { Database } from '@gemini-testing/sql.js';
|
|
3
3
|
import { TestStatus } from './constants';
|
|
4
|
-
import type { Attachment, ImageInfoFull, TestError, TestStepCompressed } from './types';
|
|
4
|
+
import type { Attachment, ImageInfoFull, TestError, TestStepCompressed, RawSuitesRow } from './types';
|
|
5
5
|
import type { HtmlReporter } from './plugin-api';
|
|
6
6
|
import { ReporterTestResult } from './adapters/test-result';
|
|
7
7
|
import { DbTestResultTransformer } from './adapters/test-result/transformers/db';
|
|
@@ -52,6 +52,7 @@ export declare class SqliteClient {
|
|
|
52
52
|
getRawConnection(): Database;
|
|
53
53
|
close(): void;
|
|
54
54
|
query<T = unknown>(queryParams?: QueryParams, ...queryArgs: string[]): T | undefined;
|
|
55
|
+
getAllSuites(): RawSuitesRow[];
|
|
55
56
|
write(testResult: ReporterTestResult): void;
|
|
56
57
|
delete(deleteParams?: DeleteParams, ...deleteArgs: string[]): void;
|
|
57
58
|
private _createSentence;
|
|
@@ -82,6 +82,7 @@ declare const _default: {
|
|
|
82
82
|
readonly SNAPSHOTS_PLAYER_GO_TO_TIME: "SNAPSHOTS_PLAYER_GO_TO_TIME";
|
|
83
83
|
readonly SNAPSHOTS_PLAYER_TOGGLE_VISIBILITY: "SNAPSHOTS_PLAYER_TOGGLE_VISIBILITY";
|
|
84
84
|
readonly SET_BROWSER_FEATURES: "SET_BROWSER_FEATURES";
|
|
85
|
+
readonly SET_REFRESH_LOADING: "SET_REFRESH_LOADING";
|
|
85
86
|
readonly SET_SEARCH_LOADING: "SET_SEARCH_LOADING";
|
|
86
87
|
};
|
|
87
88
|
export default _default;
|
|
@@ -17,5 +17,7 @@ export type SetSearchLoading = Action<typeof actionNames.SET_SEARCH_LOADING, boo
|
|
|
17
17
|
export declare const setSearchLoading: (payload: boolean) => SetSearchLoading;
|
|
18
18
|
export type ChangeViewModeAction = Action<typeof actionNames.CHANGE_VIEW_MODE, FilterPayload<ViewMode>>;
|
|
19
19
|
export declare const changeViewMode: (payload: ChangeViewModeAction['payload']) => ChangeViewModeAction;
|
|
20
|
-
export type
|
|
20
|
+
export type SetRefreshLoading = Action<typeof actionNames.SET_REFRESH_LOADING, boolean>;
|
|
21
|
+
export declare const setRefreshLoading: (payload: boolean) => SetRefreshLoading;
|
|
22
|
+
export type FiltersAction = UpdateNameFilterAction | SetMatchCaseFilterAction | SetUseRegexFilterAction | SelectBrowsersAction | ChangeViewModeAction | SetRefreshLoading | SetSearchLoading;
|
|
21
23
|
export {};
|
|
@@ -27,6 +27,7 @@ interface InitStaticReportData {
|
|
|
27
27
|
isNewUi?: boolean;
|
|
28
28
|
}
|
|
29
29
|
export declare const thunkInitStaticReport: ({ isNewUi }?: InitStaticReportData) => AppThunk;
|
|
30
|
+
export declare const thunkRefreshGuiReport: () => AppThunk;
|
|
30
31
|
export type FinGuiReportAction = Action<typeof actionNames.FIN_GUI_REPORT>;
|
|
31
32
|
export declare const finGuiReport: () => FinGuiReportAction;
|
|
32
33
|
export type FinStaticReportAction = Action<typeof actionNames.FIN_STATIC_REPORT>;
|
|
@@ -9,6 +9,7 @@ export function mkGetTestsBySuiteId(): ((state: {
|
|
|
9
9
|
isInitialized: boolean;
|
|
10
10
|
availableFeatures: import("../../../constants").Feature[];
|
|
11
11
|
isSearchLoading?: boolean | undefined;
|
|
12
|
+
isRefreshTestsLoading?: boolean | undefined;
|
|
12
13
|
nameFilter: string;
|
|
13
14
|
useRegexFilter: boolean;
|
|
14
15
|
useMatchCaseFilter: boolean;
|
|
@@ -155,6 +156,7 @@ export function mkGetLastImageByStateName(): ((state: {
|
|
|
155
156
|
isInitialized: boolean;
|
|
156
157
|
availableFeatures: import("../../../constants").Feature[];
|
|
157
158
|
isSearchLoading?: boolean | undefined;
|
|
159
|
+
isRefreshTestsLoading?: boolean | undefined;
|
|
158
160
|
nameFilter: string;
|
|
159
161
|
useRegexFilter: boolean;
|
|
160
162
|
useMatchCaseFilter: boolean;
|
|
@@ -339,6 +341,7 @@ export const getSelectedImages: ((state: {
|
|
|
339
341
|
isInitialized: boolean;
|
|
340
342
|
availableFeatures: import("../../../constants").Feature[];
|
|
341
343
|
isSearchLoading?: boolean | undefined;
|
|
344
|
+
isRefreshTestsLoading?: boolean | undefined;
|
|
342
345
|
nameFilter: string;
|
|
343
346
|
useRegexFilter: boolean;
|
|
344
347
|
useMatchCaseFilter: boolean;
|
|
@@ -488,6 +491,7 @@ export const areAllRootSuitesIdle: ((state: {
|
|
|
488
491
|
isInitialized: boolean;
|
|
489
492
|
availableFeatures: import("../../../constants").Feature[];
|
|
490
493
|
isSearchLoading?: boolean | undefined;
|
|
494
|
+
isRefreshTestsLoading?: boolean | undefined;
|
|
491
495
|
nameFilter: string;
|
|
492
496
|
useRegexFilter: boolean;
|
|
493
497
|
useMatchCaseFilter: boolean;
|
|
@@ -119,6 +119,8 @@ export interface ImageEntityFail extends ImageEntityCommon {
|
|
|
119
119
|
actualImg: ImageFile;
|
|
120
120
|
expectedImg: ImageFile;
|
|
121
121
|
refImg: RefImageFile;
|
|
122
|
+
differentPixels: number;
|
|
123
|
+
diffRatio: number;
|
|
122
124
|
}
|
|
123
125
|
export type ImageEntity = ImageEntityError | ImageEntityFail | ImageEntitySuccess | ImageEntityUpdated | ImageEntityStaged | ImageEntityCommitted;
|
|
124
126
|
export declare const isImageEntityFail: (image: ImageEntity) => image is ImageEntityFail;
|
|
@@ -215,6 +217,7 @@ export interface State {
|
|
|
215
217
|
isInitialized: boolean;
|
|
216
218
|
availableFeatures: Feature[];
|
|
217
219
|
isSearchLoading?: boolean;
|
|
220
|
+
isRefreshTestsLoading?: boolean;
|
|
218
221
|
nameFilter: string;
|
|
219
222
|
useRegexFilter: boolean;
|
|
220
223
|
useMatchCaseFilter: boolean;
|