@elisra-devops/docgen-data-provider 1.136.2 → 1.136.4
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/bin/modules/ResultDataProvider.js +4 -1
- package/bin/modules/ResultDataProvider.js.map +1 -1
- package/bin/modules/TicketsDataProvider.js +5 -1
- package/bin/modules/TicketsDataProvider.js.map +1 -1
- package/bin/tests/modules/ResultDataProvider.test.js +69 -0
- package/bin/tests/modules/ResultDataProvider.test.js.map +1 -1
- package/bin/tests/modules/ticketsDataProvider.test.js +22 -0
- package/bin/tests/modules/ticketsDataProvider.test.js.map +1 -1
- package/package.json +1 -1
- package/src/modules/ResultDataProvider.ts +6 -1
- package/src/modules/TicketsDataProvider.ts +6 -1
- package/src/tests/modules/ResultDataProvider.test.ts +115 -0
- package/src/tests/modules/ticketsDataProvider.test.ts +39 -0
|
@@ -3074,6 +3074,9 @@ class ResultDataProvider {
|
|
|
3074
3074
|
}
|
|
3075
3075
|
const suiteTestCaseItem = point === null || point === void 0 ? void 0 : point.suiteTestCase;
|
|
3076
3076
|
const testCaseId = Number((point === null || point === void 0 ? void 0 : point.testCaseId) || ((_a = suiteTestCaseItem === null || suiteTestCaseItem === void 0 ? void 0 : suiteTestCaseItem.workItem) === null || _a === void 0 ? void 0 : _a.id) || (suiteTestCaseItem === null || suiteTestCaseItem === void 0 ? void 0 : suiteTestCaseItem.testCaseId) || 0);
|
|
3077
|
+
if (useLatestTestCaseProperties) {
|
|
3078
|
+
logger_1.default.debug(`[TestReporter][LatestProperties] Fetching latest test case work item for testCaseId=${testCaseId}, runId=${runId}, resultId=${resultId}`);
|
|
3079
|
+
}
|
|
3077
3080
|
const suiteTestCaseRevision = this.resolveSuiteTestCaseRevision(suiteTestCaseItem);
|
|
3078
3081
|
const pointAsOfTimestamp = useRunlessAsOf
|
|
3079
3082
|
? String((point === null || point === void 0 ? void 0 : point.pointAsOfTimestamp) || '').trim()
|
|
@@ -4643,7 +4646,7 @@ class ResultDataProvider {
|
|
|
4643
4646
|
logger_1.default.error(`Error stack: ${err.stack}`);
|
|
4644
4647
|
return null;
|
|
4645
4648
|
}
|
|
4646
|
-
}, [selectedFields, isQueryMode, point, includeAllHistory, useRunlessAsOf]);
|
|
4649
|
+
}, [selectedFields, isQueryMode, point, includeAllHistory, useRunlessAsOf, useLatestTestCaseProperties]);
|
|
4647
4650
|
}
|
|
4648
4651
|
getTestOutcome(resultData) {
|
|
4649
4652
|
// Default outcome if nothing else is available
|