@appliqation/automation-sdk 2.3.0 → 2.3.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appliqation/automation-sdk",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "description": "Appliqation Automation SDK with API key authentication, custom run titles, and framework-specific reporters",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -336,13 +336,13 @@ class CypressReporter {
336
336
  */
337
337
  mapCypressStatus(cypressStatus) {
338
338
  const statusMap = {
339
- 'passed': 'passed',
340
- 'failed': 'failed',
341
- 'pending': 'skipped',
342
- 'skipped': 'skipped'
339
+ 'passed': 'Pass', // Capital case to match backend expectations
340
+ 'failed': 'Fail', // Capital case to match backend expectations
341
+ 'pending': 'Skipped', // Capital case to match backend expectations
342
+ 'skipped': 'Skipped'
343
343
  };
344
344
 
345
- return statusMap[cypressStatus] || 'skipped';
345
+ return statusMap[cypressStatus] || 'Skipped';
346
346
  }
347
347
 
348
348
  /**
@@ -310,15 +310,15 @@ class JestReporter {
310
310
  */
311
311
  mapJestStatus(jestStatus) {
312
312
  const statusMap = {
313
- 'passed': 'passed',
314
- 'failed': 'failed',
315
- 'skipped': 'skipped',
316
- 'pending': 'skipped',
317
- 'todo': 'skipped',
318
- 'disabled': 'skipped'
313
+ 'passed': 'Pass', // Capital case to match backend expectations
314
+ 'failed': 'Fail', // Capital case to match backend expectations
315
+ 'skipped': 'Skipped', // Capital case to match backend expectations
316
+ 'pending': 'Skipped',
317
+ 'todo': 'Skipped',
318
+ 'disabled': 'Skipped'
319
319
  };
320
320
 
321
- return statusMap[jestStatus] || 'skipped';
321
+ return statusMap[jestStatus] || 'Skipped';
322
322
  }
323
323
 
324
324
  /**
@@ -546,11 +546,11 @@ class AppliqationReporter {
546
546
  this.trackResult(runInfo.runId, testResult);
547
547
 
548
548
  // Update counters
549
- if (testResult.status === 'passed') {
549
+ if (testResult.status === 'Pass') {
550
550
  this.passedTests++;
551
- } else if (testResult.status === 'failed') {
551
+ } else if (testResult.status === 'Fail') {
552
552
  this.failedTests++;
553
- } else if (testResult.status === 'skipped') {
553
+ } else if (testResult.status === 'Skipped') {
554
554
  this.skippedTests++;
555
555
  }
556
556
 
@@ -945,14 +945,14 @@ class AppliqationReporter {
945
945
  */
946
946
  mapStatus(status) {
947
947
  const statusMap = {
948
- 'passed': 'passed',
949
- 'failed': 'failed',
950
- 'timedOut': 'failed',
951
- 'skipped': 'skipped',
952
- 'interrupted': 'skipped'
948
+ 'passed': 'Pass', // Capital case to match backend expectations
949
+ 'failed': 'Fail', // Capital case to match backend expectations
950
+ 'timedOut': 'Fail',
951
+ 'skipped': 'Skipped', // Capital case to match backend expectations
952
+ 'interrupted': 'Skipped'
953
953
  };
954
954
 
955
- return statusMap[status] || 'failed';
955
+ return statusMap[status] || 'Fail';
956
956
  }
957
957
 
958
958
  /**