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.
Files changed (34) hide show
  1. package/build/lib/config/index.js +5 -0
  2. package/build/lib/config/index.js.map +1 -1
  3. package/build/lib/constants/defaults.js +2 -1
  4. package/build/lib/constants/defaults.js.map +1 -1
  5. package/build/lib/report-builder/static.js +7 -0
  6. package/build/lib/report-builder/static.js.map +1 -1
  7. package/build/lib/static/134.min.js +1 -1
  8. package/build/lib/static/231.min.js +1 -0
  9. package/build/lib/static/359.min.js +1 -0
  10. package/build/lib/static/490.min.js +1 -0
  11. package/build/lib/static/613.min.js +1 -1
  12. package/build/lib/static/641.min.js +1 -1
  13. package/build/lib/static/698.min.js +1 -1
  14. package/build/lib/static/{526.min.css → 949.min.css} +1 -1
  15. package/build/lib/static/949.min.js +1 -0
  16. package/build/lib/static/gui.html +1 -1
  17. package/build/lib/static/gui.min.js +1 -1
  18. package/build/lib/static/index.html +1 -1
  19. package/build/lib/static/new-ui-gui.html +1 -1
  20. package/build/lib/static/new-ui-report.html +1 -1
  21. package/build/lib/static/newGui.min.js +1 -1
  22. package/build/lib/static/newReport.min.js +1 -1
  23. package/build/lib/static/report.min.js +1 -1
  24. package/build/lib/types.d.ts +15 -2
  25. package/build/lib/types.js +1 -0
  26. package/build/lib/types.js.map +1 -1
  27. package/build/package.json +1 -1
  28. package/package.json +1 -1
  29. package/plugins-sdk/build-ui/lib/types.d.ts +15 -2
  30. package/build/lib/static/299.min.js +0 -1
  31. package/build/lib/static/326.min.js +0 -1
  32. package/build/lib/static/526.min.js +0 -1
  33. package/build/lib/static/794.min.js +0 -1
  34. /package/build/lib/static/{299.min.css → 231.min.css} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../lib/types.ts"],"names":[],"mappings":";;;AAqSA,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,cAEX;AAFD,WAAY,cAAc;IACtB,2DAAQ,CAAA;AACZ,CAAC,EAFW,cAAc,8BAAd,cAAc,QAEzB"}
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"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-reporter",
3
- "version": "11.3.0",
3
+ "version": "11.4.0",
4
4
  "description": "Html-reporter and GUI for viewing and managing results of a tests run. Currently supports Testplane and Hermione.",
5
5
  "files": [
6
6
  "build",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-reporter",
3
- "version": "11.3.0",
3
+ "version": "11.4.0",
4
4
  "description": "Html-reporter and GUI for viewing and managing results of a tests run. Currently supports Testplane and Hermione.",
5
5
  "files": [
6
6
  "build",
@@ -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 type Attachment = SnapshotAttachment;
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;