playwright-ctrf-json-reporter 0.0.10 → 0.0.12

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
@@ -125,7 +125,7 @@ The test object in the report includes the following [CTRF properties](https://c
125
125
  | `tags` | Array of Strings | Optional | The tags retrieved from the test name |
126
126
  | `type` | String | Optional | The type of test (e.g., `api`, `e2e`). |
127
127
  | `filepath` | String | Optional | The file path where the test is located in the project. |
128
- | `retries` | Number | Optional | The number of retries attempted for the test. |
128
+ | `retries` | Number | Optional | The number of retries attempted for the test. |
129
129
  | `flaky` | Boolean | Optional | Indicates whether the test result is flaky. |
130
130
  | `browser` | String | Optional | The browser used for the test. |
131
131
  | `screenshot` | String | Optional | A base64 encoded screenshot taken during the test. |
@@ -104,8 +104,8 @@ class GenerateCtrfReport {
104
104
  test.tags = this.extractTagsFromTitle(testCase.title);
105
105
  test.type = (_a = this.reporterConfigOptions.testType) !== null && _a !== void 0 ? _a : 'e2e';
106
106
  test.filePath = testCase.location.file;
107
- test.retry = testResult.retry;
108
- test.flake = testResult.status === 'passed' && testResult.retry > 0;
107
+ test.retries = testResult.retry;
108
+ test.flaky = testResult.status === 'passed' && testResult.retry > 0;
109
109
  if (this.reporterConfigOptions.screenshot === true) {
110
110
  test.screenshot = this.extractScreenshotBase64(testResult);
111
111
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright-ctrf-json-reporter",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "description": "A Playwright JSON test reporter to create test results reports",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -11,6 +11,7 @@
11
11
  "format": "prettier --write .",
12
12
  "format-check": "prettier --check ."
13
13
  },
14
+ "repository": "github:ctrf-io/playwright-ctrf-json-report",
14
15
  "files": [
15
16
  "dist/",
16
17
  "README.md"