monocart-reporter 2.9.19 → 2.9.21
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/lib/utils/pie.js
CHANGED
|
@@ -120,7 +120,7 @@ const generatePieChart = (pieDataList) => {
|
|
|
120
120
|
// legends
|
|
121
121
|
const legendWidth = 200;
|
|
122
122
|
const legendHeight = Math.floor((o.height - margin * 3) / (list.length + 1));
|
|
123
|
-
const legends = [`<g font-family="Helvetica, Arial, sans-serif" transform="translate(${pieWidth + margin} ${margin * 2})">`];
|
|
123
|
+
const legends = [`<g font-size="14px" font-family="Helvetica, Arial, sans-serif" transform="translate(${pieWidth + margin} ${margin * 2})">`];
|
|
124
124
|
|
|
125
125
|
const legendList = list.concat([{
|
|
126
126
|
id: 'tests',
|
|
@@ -132,7 +132,8 @@ const generatePieChart = (pieDataList) => {
|
|
|
132
132
|
const midY = legendHeight * 0.5;
|
|
133
133
|
legends.push(`<g class="${o.ns}-legend-${item.id}" transform="translate(0 ${legendHeight * i})">`);
|
|
134
134
|
if (item.id !== 'tests') {
|
|
135
|
-
|
|
135
|
+
const opacity = item.value ? '0.8' : '0.2';
|
|
136
|
+
legends.push(`<circle cx="10" cy="${midY}" r="8" fill="${item.color}" opacity="${opacity}" />`);
|
|
136
137
|
}
|
|
137
138
|
legends.push(`<text x="25" y="${midY}" alignment-baseline="middle">${item.name}</text>`);
|
|
138
139
|
legends.push(`<text x="125" y="${midY}" alignment-baseline="middle" text-anchor="end">${Util.NF(item.value)}</text>`);
|
package/lib/visitor.js
CHANGED
|
@@ -415,10 +415,17 @@ class Visitor {
|
|
|
415
415
|
type: 'step',
|
|
416
416
|
stepType: testStep.category,
|
|
417
417
|
|
|
418
|
+
startTime: testStep.startTime,
|
|
419
|
+
|
|
420
|
+
// Added in: v1.51
|
|
421
|
+
annotations: testStep.annotations,
|
|
422
|
+
|
|
418
423
|
duration: testStep.duration,
|
|
419
424
|
location: this.locationHandler(testStep.location)
|
|
420
425
|
};
|
|
426
|
+
|
|
421
427
|
this.stepErrorsHandler(step, testStep, caseItem);
|
|
428
|
+
|
|
422
429
|
if (Util.isList(testStep.steps)) {
|
|
423
430
|
// console.log(testStep.title);
|
|
424
431
|
caseItem.stepSubs = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monocart-reporter",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.21",
|
|
4
4
|
"description": "A playwright test reporter. Shows suites/cases/steps with tree style, markdown annotations, custom columns/formatters/data collection visitors, console logs, style tags, send email.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -53,22 +53,22 @@
|
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@babel/code-frame": "^7.27.1",
|
|
56
|
-
"@playwright/test": "^1.
|
|
56
|
+
"@playwright/test": "^1.53.0",
|
|
57
57
|
"ansi-to-html": "^0.7.2",
|
|
58
58
|
"async-tick": "^1.0.0",
|
|
59
59
|
"autolinker": "^4.1.5",
|
|
60
|
-
"axios": "^1.
|
|
61
|
-
"commander": "^
|
|
60
|
+
"axios": "^1.10.0",
|
|
61
|
+
"commander": "^14.0.0",
|
|
62
62
|
"dotenv": "^16.5.0",
|
|
63
|
-
"eslint": "^9.
|
|
63
|
+
"eslint": "^9.29.0",
|
|
64
64
|
"eslint-config-plus": "^2.0.2",
|
|
65
|
-
"eslint-plugin-html": "^8.1.
|
|
66
|
-
"eslint-plugin-vue": "^10.
|
|
65
|
+
"eslint-plugin-html": "^8.1.3",
|
|
66
|
+
"eslint-plugin-vue": "^10.2.0",
|
|
67
67
|
"file-saver": "^2.0.5",
|
|
68
68
|
"find-up": "^7.0.0",
|
|
69
69
|
"github-markdown-css": "^5.8.1",
|
|
70
|
-
"glob": "^11.0.
|
|
71
|
-
"marked": "^15.0.
|
|
70
|
+
"glob": "^11.0.3",
|
|
71
|
+
"marked": "^15.0.12",
|
|
72
72
|
"mermaid": "^11.6.0",
|
|
73
73
|
"mitt": "^3.0.1",
|
|
74
74
|
"monocart-code-viewer": "^1.1.5",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"open": "8.4.2",
|
|
79
79
|
"sanitize-filename": "^1.6.3",
|
|
80
80
|
"stack-utils": "^2.0.6",
|
|
81
|
-
"stylelint": "^16.
|
|
81
|
+
"stylelint": "^16.20.0",
|
|
82
82
|
"stylelint-config-plus": "^1.1.3",
|
|
83
83
|
"supports-color": "^10.0.0",
|
|
84
84
|
"turbogrid": "^3.2.0",
|