monocart-reporter 1.6.32 → 1.6.33
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/README.md +0 -12
- package/lib/common.js +2 -1
- package/lib/default/columns.js +1 -1
- package/lib/generate-data.js +0 -10
- package/lib/platform/share.js +1 -1
- package/lib/runtime/monocart-common.js +1 -1
- package/lib/runtime/monocart-reporter.js +1 -1
- package/lib/visitor.js +30 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -451,18 +451,6 @@ test.describe('suite title', () => {
|
|
|
451
451
|
*/
|
|
452
452
|
const { test, expect } = require('@playwright/test');
|
|
453
453
|
```
|
|
454
|
-
```js
|
|
455
|
-
// for project (Can't use comments but use project level `metadata`)
|
|
456
|
-
// playwright.config.js
|
|
457
|
-
module.exports = {
|
|
458
|
-
projects: [{
|
|
459
|
-
name: 'Desktop Chromium',
|
|
460
|
-
metadata: {
|
|
461
|
-
owner: 'PO'
|
|
462
|
-
}
|
|
463
|
-
}]
|
|
464
|
-
};
|
|
465
|
-
```
|
|
466
454
|
|
|
467
455
|
### Remove Secrets and Sensitive Data
|
|
468
456
|
> The report may hosted outside of the organization’s internal boundaries, security becomes a big issue. Any secrets or sensitive data, such as usernames, passwords, tokens and API keys, should be handled with extreme care. The following example is removing the password and token from the report data with the string replacement in `visitor` function.
|
package/lib/common.js
CHANGED
|
@@ -39,7 +39,8 @@ const stepHandler = (item, summary) => {
|
|
|
39
39
|
const tagHandler = (item, tags, tagOptions) => {
|
|
40
40
|
const matches = item.title.matchAll(Util.tagPattern);
|
|
41
41
|
for (const match of matches) {
|
|
42
|
-
|
|
42
|
+
// all, before, key, after
|
|
43
|
+
const tag = match[2];
|
|
43
44
|
let tagItem = tags[tag];
|
|
44
45
|
if (!tagItem) {
|
|
45
46
|
tagItem = {};
|
package/lib/default/columns.js
CHANGED
package/lib/generate-data.js
CHANGED
|
@@ -81,16 +81,6 @@ const generateData = async (results) => {
|
|
|
81
81
|
// global metadata
|
|
82
82
|
const metadata = config.metadata || {};
|
|
83
83
|
|
|
84
|
-
// merge project row metadata
|
|
85
|
-
config.projects.forEach((p, i) => {
|
|
86
|
-
// merge project metadata to project row
|
|
87
|
-
const pm = p.metadata;
|
|
88
|
-
const row = data.rows[i];
|
|
89
|
-
if (pm && row) {
|
|
90
|
-
Object.assign(row, pm);
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
|
|
94
84
|
const reportName = getReportName(options, config, metadata);
|
|
95
85
|
options.name = reportName;
|
|
96
86
|
|