@allurereport/plugin-awesome 3.13.1 → 3.14.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/dist/converters.js +10 -3
- package/package.json +6 -6
package/dist/converters.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createDictionary, shouldHideLabel, } from "@allurereport/core-api";
|
|
1
|
+
import { createDictionary, isStep, redactParameters, shouldHideLabel, } from "@allurereport/core-api";
|
|
2
2
|
import MarkdownIt from "markdown-it";
|
|
3
3
|
const md = new MarkdownIt();
|
|
4
4
|
const markdownToHtml = (value) => (value ? md.render(value) : undefined);
|
|
@@ -28,9 +28,9 @@ export const convertTestResult = (tr, options = {}) => {
|
|
|
28
28
|
isRetry: tr.isRetry,
|
|
29
29
|
labels,
|
|
30
30
|
groupedLabels: mapLabelsByName(labels),
|
|
31
|
-
parameters: tr.parameters,
|
|
31
|
+
parameters: redactParameters(tr.parameters),
|
|
32
32
|
links: tr.links,
|
|
33
|
-
steps: tr.steps,
|
|
33
|
+
steps: (tr.steps ?? []).map(convertTestStepResult),
|
|
34
34
|
error: tr.error,
|
|
35
35
|
testCase: tr.testCase,
|
|
36
36
|
descriptionHtml: tr.descriptionHtml ?? markdownToHtml(tr.description),
|
|
@@ -46,6 +46,13 @@ export const convertTestResult = (tr, options = {}) => {
|
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
export const convertTestStepResult = (tsr) => {
|
|
49
|
+
if (isStep(tsr)) {
|
|
50
|
+
return {
|
|
51
|
+
...tsr,
|
|
52
|
+
parameters: redactParameters(tsr.parameters),
|
|
53
|
+
steps: (tsr.steps ?? []).map(convertTestStepResult),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
49
56
|
return tsr;
|
|
50
57
|
};
|
|
51
58
|
export const convertFixtureResult = (fr) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allurereport/plugin-awesome",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.14.0",
|
|
4
4
|
"description": "Allure Awesome Plugin – brand new HTML report with modern design and new features",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"lint:fix": "oxlint --import-plugin --fix src test features stories"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@allurereport/charts-api": "3.
|
|
34
|
-
"@allurereport/core-api": "3.
|
|
35
|
-
"@allurereport/plugin-api": "3.
|
|
36
|
-
"@allurereport/web-awesome": "3.
|
|
37
|
-
"@allurereport/web-commons": "3.
|
|
33
|
+
"@allurereport/charts-api": "3.14.0",
|
|
34
|
+
"@allurereport/core-api": "3.14.0",
|
|
35
|
+
"@allurereport/plugin-api": "3.14.0",
|
|
36
|
+
"@allurereport/web-awesome": "3.14.0",
|
|
37
|
+
"@allurereport/web-commons": "3.14.0",
|
|
38
38
|
"d3-shape": "^3.2.0",
|
|
39
39
|
"handlebars": "^4.7.9",
|
|
40
40
|
"markdown-it": "^14.2.0"
|