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 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
- const tag = match[1];
42
+ // all, before, key, after
43
+ const tag = match[2];
43
44
  let tagItem = tags[tag];
44
45
  if (!tagItem) {
45
46
  tagItem = {};
@@ -9,7 +9,7 @@ module.exports = [{
9
9
  id: 'title',
10
10
  name: 'Title',
11
11
  searchable: true,
12
- width: 300,
12
+ width: 350,
13
13
  maxWidth: 1230
14
14
  }, {
15
15
  id: 'type',
@@ -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
 
@@ -1,7 +1,7 @@
1
1
  const Util = {
2
2
 
3
3
  // definition
4
- tagPattern: /@([^@\s]+)/g,
4
+ tagPattern: /(\s*)@([^@\s]+)(\s*)/g,
5
5
  lineBreakPattern: /\r\n|[\r\n\u2028\u2029]/gu,
6
6
 
7
7
  attachments: {