@zest-pw/test 1.0.7 → 1.0.9

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.
@@ -106,7 +106,7 @@ function getPlannedSteps(test) {
106
106
  * Combines executed and unexecuted steps
107
107
  * @param executedSteps - Array of executed step objects
108
108
  * @param plannedSteps - Array of planned step titles
109
- * @returns Combined array with executed steps and unexecuted steps marked as 'In Progress'
109
+ * @returns Combined array with executed steps and unexecuted steps marked as 'Not Executed'
110
110
  */
111
111
  function combineSteps(executedSteps, plannedSteps) {
112
112
  const executedStepTitles = executedSteps.map((step) => step.stepTitle);
@@ -116,7 +116,7 @@ function combineSteps(executedSteps, plannedSteps) {
116
116
  ...notExecutedSteps.map((stepTitle) => ({
117
117
  stepTitle: stepTitle,
118
118
  actualResult: [],
119
- statusName: 'In Progress'
119
+ statusName: 'Not Executed'
120
120
  }))
121
121
  ];
122
122
  }
@@ -69,7 +69,7 @@ function printTestResults(result) {
69
69
  case 'fail':
70
70
  failedCount++;
71
71
  break;
72
- case 'In Progress':
72
+ case 'Not Executed':
73
73
  skippedCount++;
74
74
  break;
75
75
  }
@@ -87,7 +87,7 @@ function printTestResults(result) {
87
87
  function printTestSteps(allSteps, testTitle, outputDir) {
88
88
  console.log('');
89
89
  allSteps.forEach((step, stepIndex) => {
90
- if (step.statusName === 'In Progress') {
90
+ if (step.statusName === 'Not Executed') {
91
91
  return;
92
92
  }
93
93
  let stepTitle;
@@ -1 +1 @@
1
- {"version":3,"file":"get-results-from-json.d.ts","sourceRoot":"","sources":["../../zephyr-api/get-results-from-json.ts"],"names":[],"mappings":"AAqBA;;;;;GAKG;AACH,wBAAsB,kBAAkB,iBAwCvC"}
1
+ {"version":3,"file":"get-results-from-json.d.ts","sourceRoot":"","sources":["../../zephyr-api/get-results-from-json.ts"],"names":[],"mappings":"AAqBA;;;;;GAKG;AACH,wBAAsB,kBAAkB,iBA0CvC"}
@@ -82,6 +82,9 @@ async function getResultsFromJson() {
82
82
  const errorHtml = `<div style="min-width: 800px; margin: 5px; max-width: 900px;"><div style="background-color: #d32f2f; color: white; text-align: center; font-family: monospace; font-size: 16px;">ERROR</div><div style="padding: 15px; font-family: monospace; white-space: pre-wrap;">${errorMessage}</div><div style="background-color: #d32f2f; color: white; text-align: center; font-family: monospace; font-size: 16px;">ERROR</div></div>`;
83
83
  processedError = errorHtml;
84
84
  }
85
+ else {
86
+ processedError = '';
87
+ }
85
88
  return {
86
89
  actualResult: processedError + '\n' + processedActualResult,
87
90
  ...step
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zest-pw/test",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Advanced Playwright test framework with automatic screenshots, custom reporting, and Zephyr Scale integration",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",