html-reporter 10.6.7 → 10.6.8

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 (39) hide show
  1. package/build/lib/adapters/test/testplane.js +1 -0
  2. package/build/lib/adapters/test/testplane.js.map +1 -1
  3. package/build/lib/adapters/test-result/index.d.ts +2 -2
  4. package/build/lib/adapters/test-result/playwright.d.ts +2 -2
  5. package/build/lib/adapters/test-result/playwright.js +12 -1
  6. package/build/lib/adapters/test-result/playwright.js.map +1 -1
  7. package/build/lib/adapters/test-result/reporter.d.ts +2 -2
  8. package/build/lib/adapters/test-result/sqlite.d.ts +2 -2
  9. package/build/lib/adapters/test-result/sqlite.js.map +1 -1
  10. package/build/lib/adapters/test-result/testplane.d.ts +2 -2
  11. package/build/lib/adapters/test-result/testplane.js +17 -2
  12. package/build/lib/adapters/test-result/testplane.js.map +1 -1
  13. package/build/lib/bundle/index.js +138 -138
  14. package/build/lib/common-utils.d.ts +1 -1
  15. package/build/lib/common-utils.js +12 -8
  16. package/build/lib/common-utils.js.map +1 -1
  17. package/build/lib/constants/test-statuses.d.ts +4 -1
  18. package/build/lib/constants/test-statuses.js +4 -1
  19. package/build/lib/constants/test-statuses.js.map +1 -1
  20. package/build/lib/plugin-utils.d.ts +1 -1
  21. package/build/lib/plugin-utils.js.map +1 -1
  22. package/build/lib/sqlite-client.d.ts +2 -2
  23. package/build/lib/static/gui.min.css +2 -2
  24. package/build/lib/static/gui.min.js +1 -1
  25. package/build/lib/static/icons/testplane-mono.svg +1 -0
  26. package/build/lib/static/newGui.min.css +3 -3
  27. package/build/lib/static/newGui.min.js +1 -1
  28. package/build/lib/static/newReport.min.css +3 -3
  29. package/build/lib/static/newReport.min.js +1 -1
  30. package/build/lib/static/report.min.css +2 -2
  31. package/build/lib/static/report.min.js +1 -1
  32. package/build/lib/types.d.ts +17 -1
  33. package/build/lib/types.js +10 -0
  34. package/build/lib/types.js.map +1 -1
  35. package/build/package.json +4 -3
  36. package/package.json +4 -3
  37. package/build/lib/history-utils.d.ts +0 -5
  38. package/build/lib/history-utils.js +0 -43
  39. package/build/lib/history-utils.js.map +0 -1
@@ -8,7 +8,7 @@ import { ImageDiffError, NoRefImageError } from './errors';
8
8
  declare module 'tmp' {
9
9
  const tmpdir: string;
10
10
  }
11
- export { Suite as TestplaneSuite } from 'testplane';
11
+ export type { Suite as TestplaneSuite } from 'testplane';
12
12
  export interface HermioneTestResult extends TestResult {
13
13
  timestamp?: number;
14
14
  }
@@ -253,3 +253,19 @@ export interface BrowserItem {
253
253
  id: string;
254
254
  versions: string[];
255
255
  }
256
+ export declare enum TestStepKey {
257
+ Name = "n",
258
+ Args = "a",
259
+ Duration = "d",
260
+ IsFailed = "f",
261
+ Children = "c",
262
+ IsGroup = "g"
263
+ }
264
+ export interface TestStepCompressed {
265
+ [TestStepKey.Name]: string;
266
+ [TestStepKey.Args]: string[];
267
+ [TestStepKey.Duration]: number;
268
+ [TestStepKey.IsFailed]: boolean;
269
+ [TestStepKey.IsGroup]: boolean;
270
+ [TestStepKey.Children]?: TestStepCompressed[];
271
+ }
@@ -1,3 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TestStepKey = void 0;
4
+ var TestStepKey;
5
+ (function (TestStepKey) {
6
+ TestStepKey["Name"] = "n";
7
+ TestStepKey["Args"] = "a";
8
+ TestStepKey["Duration"] = "d";
9
+ TestStepKey["IsFailed"] = "f";
10
+ TestStepKey["Children"] = "c";
11
+ TestStepKey["IsGroup"] = "g";
12
+ })(TestStepKey || (exports.TestStepKey = TestStepKey = {}));
3
13
  //# sourceMappingURL=types.js.map
@@ -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":";;;AA2RA,IAAY,WAOX;AAPD,WAAY,WAAW;IACnB,yBAAU,CAAA;IACV,yBAAU,CAAA;IACV,6BAAc,CAAA;IACd,6BAAc,CAAA;IACd,6BAAc,CAAA;IACd,4BAAa,CAAA;AACjB,CAAC,EAPW,WAAW,2BAAX,WAAW,QAOtB"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-reporter",
3
- "version": "10.6.7",
3
+ "version": "10.6.8",
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"
@@ -128,7 +128,7 @@
128
128
  "@babel/preset-react": "^7.22.5",
129
129
  "@babel/preset-typescript": "^7.22.5",
130
130
  "@gravity-ui/components": "^3.7.0",
131
- "@gravity-ui/uikit": "^6.23.0",
131
+ "@gravity-ui/uikit": "^6.23.1",
132
132
  "@playwright/test": "^1.44.1",
133
133
  "@react-hook/resize-observer": "^2.0.1",
134
134
  "@swc/core": "^1.3.64",
@@ -154,6 +154,7 @@
154
154
  "@types/react-dom": "^18.3.0",
155
155
  "@types/react-virtualized": "^9.21.30",
156
156
  "@types/react-window": "^1.8.8",
157
+ "@types/redux-mock-store": "^1.0.6",
157
158
  "@types/sinon": "^4.3.3",
158
159
  "@types/tmp": "^0.1.0",
159
160
  "@types/urijs": "^1.19.19",
@@ -233,7 +234,7 @@
233
234
  "stylus": "^0.57.0",
234
235
  "stylus-loader": "^7.1.3",
235
236
  "terser-webpack-plugin": "^5.3.9",
236
- "testplane": "^0.1.0-rc.0",
237
+ "testplane": "^8.19.9",
237
238
  "tree-kill": "^1.2.2",
238
239
  "ts-node": "^10.9.1",
239
240
  "type-fest": "^3.13.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-reporter",
3
- "version": "10.6.7",
3
+ "version": "10.6.8",
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"
@@ -128,7 +128,7 @@
128
128
  "@babel/preset-react": "^7.22.5",
129
129
  "@babel/preset-typescript": "^7.22.5",
130
130
  "@gravity-ui/components": "^3.7.0",
131
- "@gravity-ui/uikit": "^6.23.0",
131
+ "@gravity-ui/uikit": "^6.23.1",
132
132
  "@playwright/test": "^1.44.1",
133
133
  "@react-hook/resize-observer": "^2.0.1",
134
134
  "@swc/core": "^1.3.64",
@@ -154,6 +154,7 @@
154
154
  "@types/react-dom": "^18.3.0",
155
155
  "@types/react-virtualized": "^9.21.30",
156
156
  "@types/react-window": "^1.8.8",
157
+ "@types/redux-mock-store": "^1.0.6",
157
158
  "@types/sinon": "^4.3.3",
158
159
  "@types/tmp": "^0.1.0",
159
160
  "@types/urijs": "^1.19.19",
@@ -233,7 +234,7 @@
233
234
  "stylus": "^0.57.0",
234
235
  "stylus-loader": "^7.1.3",
235
236
  "terser-webpack-plugin": "^5.3.9",
236
- "testplane": "^0.1.0-rc.0",
237
+ "testplane": "^8.19.9",
237
238
  "tree-kill": "^1.2.2",
238
239
  "ts-node": "^10.9.1",
239
240
  "type-fest": "^3.13.1",
@@ -1,5 +0,0 @@
1
- export function getCommandsHistory(history: any): any[];
2
- declare namespace _default {
3
- export { getCommandsHistory };
4
- }
5
- export default _default;
@@ -1,43 +0,0 @@
1
- 'use strict';
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCommandsHistory = void 0;
4
- const lodash_1 = require("lodash");
5
- const formatDuration = (d) => `<- ${d}ms`;
6
- const wrapArg = (arg) => `"${arg}"`;
7
- const getCommand = ({ n: name, a: args = [] }) => `${name}(${args.map(wrapArg).join(', ')})`;
8
- const traverseNodes = (nodes, traverseCb, depth = 0) => {
9
- nodes.forEach(node => {
10
- const shouldTraverseChildren = traverseCb(node, depth);
11
- if (shouldTraverseChildren) {
12
- traverseNodes(node.c, traverseCb, depth + 1);
13
- }
14
- });
15
- };
16
- const getCommandsHistory = (history) => {
17
- if ((0, lodash_1.isEmpty)(history)) {
18
- return [];
19
- }
20
- try {
21
- const formattedHistory = [];
22
- const traverseCb = (node, depth) => {
23
- const offset = '\t'.repeat(depth);
24
- const isGroup = Boolean(node.g);
25
- const duration = node.d;
26
- const isFailed = Boolean(node.f);
27
- const title = isGroup ? node.n : getCommand(node);
28
- const formattedDuration = formatDuration(duration);
29
- formattedHistory.push(`${offset}${title} ${formattedDuration}\n`);
30
- return isFailed;
31
- };
32
- traverseNodes(history, traverseCb);
33
- return formattedHistory;
34
- }
35
- catch (e) {
36
- return [`failed to get command history: ${e.message}`];
37
- }
38
- };
39
- exports.getCommandsHistory = getCommandsHistory;
40
- exports.default = {
41
- getCommandsHistory: exports.getCommandsHistory
42
- };
43
- //# sourceMappingURL=history-utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"history-utils.js","sourceRoot":"","sources":["../../lib/history-utils.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAEb,mCAA+B;AAE/B,MAAM,cAAc,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC;AAE1C,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,GAAG,GAAG,CAAC;AAEpC,MAAM,UAAU,GAAG,CAAC,EAChB,CAAC,EAAE,IAAI,EACP,CAAC,EAAE,IAAI,GAAG,EAAE,EACf,EAAE,EAAE,CAAC,GAAG,IAAI,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;AAEjD,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,GAAG,CAAC,EAAE,EAAE;IACnD,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACjB,MAAM,sBAAsB,GAAG,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAEvD,IAAI,sBAAsB,EAAE;YACxB,aAAa,CAAC,IAAI,CAAC,CAAC,EAAE,UAAU,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;SAChD;IACL,CAAC,CAAC,CAAC;A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