html-reporter 11.3.0 → 11.4.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 +5 -0
- package/build/lib/config/index.js.map +1 -1
- package/build/lib/constants/defaults.js +2 -1
- package/build/lib/constants/defaults.js.map +1 -1
- package/build/lib/report-builder/static.js +7 -0
- package/build/lib/report-builder/static.js.map +1 -1
- package/build/lib/static/134.min.js +1 -1
- package/build/lib/static/231.min.js +1 -0
- package/build/lib/static/359.min.js +1 -0
- package/build/lib/static/490.min.js +1 -0
- package/build/lib/static/613.min.js +1 -1
- package/build/lib/static/641.min.js +1 -1
- package/build/lib/static/698.min.js +1 -1
- package/build/lib/static/{526.min.css → 949.min.css} +1 -1
- package/build/lib/static/949.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/types.d.ts +15 -2
- package/build/lib/types.js +1 -0
- package/build/lib/types.js.map +1 -1
- package/build/package.json +1 -1
- package/package.json +1 -1
- package/plugins-sdk/build-ui/lib/types.d.ts +15 -2
- package/build/lib/static/299.min.js +0 -1
- package/build/lib/static/326.min.js +0 -1
- package/build/lib/static/526.min.js +0 -1
- package/build/lib/static/794.min.js +0 -1
- /package/build/lib/static/{299.min.css → 231.min.css} +0 -0
package/build/lib/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../lib/types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../lib/types.ts"],"names":[],"mappings":";;;AA+SA,IAAY,WASX;AATD,WAAY,WAAW;IACnB,yBAAU,CAAA;IACV,yBAAU,CAAA;IACV,6BAAc,CAAA;IACd,6BAAc,CAAA;IACd,6BAAc,CAAA;IACd,4BAAa,CAAA;IACb,+BAAgB,CAAA;IAChB,2BAAY,CAAA;AAChB,CAAC,EATW,WAAW,2BAAX,WAAW,QAStB;AAaD,IAAY,cAGX;AAHD,WAAY,cAAc;IACtB,2DAAY,CAAA;IACZ,uDAAU,CAAA;AACd,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB"}
|
package/build/package.json
CHANGED
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ import { BrowserFeature, DiffModeId, SaveFormat, SUITES_TABLE_COLUMNS, TestStatu
|
|
|
6
6
|
import type { HtmlReporter } from './plugin-api';
|
|
7
7
|
import { ImageDiffError, NoRefImageError } from './errors';
|
|
8
8
|
import { UiMode } from './constants/local-storage';
|
|
9
|
+
import { ReporterTestResult } from './adapters/test-result';
|
|
9
10
|
declare module 'tmp' {
|
|
10
11
|
const tmpdir: string;
|
|
11
12
|
}
|
|
@@ -209,6 +210,12 @@ export interface StaticImageAccepterRequest extends Pick<StaticImageAccepterConf
|
|
|
209
210
|
path: string;
|
|
210
211
|
}>;
|
|
211
212
|
}
|
|
213
|
+
export interface Badge {
|
|
214
|
+
title?: string;
|
|
215
|
+
url?: string;
|
|
216
|
+
icon?: string;
|
|
217
|
+
}
|
|
218
|
+
export type GenerateBadges = (suite: ReporterTestResult) => Array<Badge | null>;
|
|
212
219
|
export interface ReporterConfig {
|
|
213
220
|
baseHost: string;
|
|
214
221
|
commandsWithShortHistory: string[];
|
|
@@ -231,6 +238,7 @@ export interface ReporterConfig {
|
|
|
231
238
|
};
|
|
232
239
|
staticImageAccepter: StaticImageAccepterConfig;
|
|
233
240
|
uiMode: UiMode | null;
|
|
241
|
+
generateBadges: GenerateBadges | null;
|
|
234
242
|
}
|
|
235
243
|
export type ReporterOptions = Omit<ReporterConfig, 'errorPatterns'> & {
|
|
236
244
|
errorPatterns: (string | ErrorPattern)[];
|
|
@@ -290,7 +298,8 @@ export interface TestStepCompressed {
|
|
|
290
298
|
[TestStepKey.Repeat]?: number;
|
|
291
299
|
}
|
|
292
300
|
export declare enum AttachmentType {
|
|
293
|
-
Snapshot = 0
|
|
301
|
+
Snapshot = 0,
|
|
302
|
+
Badges = 1
|
|
294
303
|
}
|
|
295
304
|
export interface SnapshotAttachment {
|
|
296
305
|
type: AttachmentType.Snapshot;
|
|
@@ -298,7 +307,11 @@ export interface SnapshotAttachment {
|
|
|
298
307
|
maxWidth: number;
|
|
299
308
|
maxHeight: number;
|
|
300
309
|
}
|
|
301
|
-
export
|
|
310
|
+
export interface BadgesAttachment {
|
|
311
|
+
type: AttachmentType.Badges;
|
|
312
|
+
list: Badge[];
|
|
313
|
+
}
|
|
314
|
+
export type Attachment = SnapshotAttachment | BadgesAttachment;
|
|
302
315
|
export interface ApiErrorResponse {
|
|
303
316
|
error: {
|
|
304
317
|
message: string;
|