playwright-qase-reporter 2.0.17 → 2.1.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/changelog.md CHANGED
@@ -1,3 +1,10 @@
1
+ # playwright-qase-reporter@2.1.0
2
+
3
+ ## What's new
4
+
5
+ - Updated to the latest minor version of the common package for improved compatibility and features.
6
+ - Fixed all ESLint warnings across the project to ensure code quality and maintainability.
7
+
1
8
  # playwright-qase-reporter@2.0.17
2
9
 
3
10
  ## What's new
@@ -110,7 +117,7 @@ The updated log message will, hopefully, explain it better:
110
117
 
111
118
  > Some tests are using qase(id, 'Title') syntax.
112
119
  > Consider using the new syntax: qase.id().title() in the test body. See the docs for reference:
113
- > https://github.com/qase-tms/qase-javascript/tree/main/qase-playwright#readme
120
+ > <https://github.com/qase-tms/qase-javascript/tree/main/qase-playwright#readme>
114
121
 
115
122
  # playwright-qase-reporter@2.0.4
116
123
 
@@ -321,7 +328,7 @@ for (const name of people) {
321
328
 
322
329
  ## What's new
323
330
 
324
- * Change module exports for simpler importing.
331
+ - Change module exports for simpler importing.
325
332
 
326
333
  New syntax:
327
334
 
@@ -330,11 +337,12 @@ for (const name of people) {
330
337
  ```
331
338
 
332
339
  instead of:
340
+
333
341
  ```js
334
342
  import { qase } from 'playwright-qase-reporter/playwright';
335
343
  ```
336
344
 
337
- * Update the readme with examples of new imports and annotations.
345
+ - Update the readme with examples of new imports and annotations.
338
346
 
339
347
  # playwright-qase-reporter@2.0.0-beta.2
340
348
 
package/dist/reporter.js CHANGED
@@ -453,14 +453,14 @@ class PlaywrightQaseReporter {
453
453
  let expectedResult = null;
454
454
  let data = null;
455
455
  let cleanedString = input;
456
- const hasExpectedResult = /QaseExpRes:/.test(input);
457
- const hasData = /QaseData:/.test(input);
456
+ const hasExpectedResult = input.includes('QaseExpRes:');
457
+ const hasData = input.includes('QaseData:');
458
458
  if (hasExpectedResult || hasData) {
459
459
  const regex = /QaseExpRes:\s*:?\s*(.*?)\s*(?=QaseData:|$)QaseData:\s*:?\s*(.*)?/;
460
460
  const match = input.match(regex);
461
461
  if (match) {
462
- expectedResult = match[1]?.trim() || null;
463
- data = match[2]?.trim() || null;
462
+ expectedResult = match[1]?.trim() ?? null;
463
+ data = match[2]?.trim() ?? null;
464
464
  cleanedString = input
465
465
  .replace(/QaseExpRes:\s*:?\s*.*?(?=QaseData:|$)/, '')
466
466
  .replace(/QaseData:\s*:?\s*.*/, '')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright-qase-reporter",
3
- "version": "2.0.17",
3
+ "version": "2.1.0",
4
4
  "description": "Qase TMS Playwright Reporter",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -44,7 +44,7 @@
44
44
  "license": "Apache-2.0",
45
45
  "dependencies": {
46
46
  "chalk": "^4.1.2",
47
- "qase-javascript-commons": "~2.2.14",
47
+ "qase-javascript-commons": "~2.3.0",
48
48
  "uuid": "^9.0.0"
49
49
  },
50
50
  "peerDependencies": {