@cqa-lib/cqa-ui 1.1.303 → 1.1.304
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.
|
@@ -22793,14 +22793,22 @@ class TestCaseLoopStepComponent {
|
|
|
22793
22793
|
return false;
|
|
22794
22794
|
}
|
|
22795
22795
|
getStepsSummary() {
|
|
22796
|
-
var _a, _b;
|
|
22796
|
+
var _a, _b, _c;
|
|
22797
22797
|
if (this.nestedSteps.length === 0) {
|
|
22798
22798
|
return '0 steps';
|
|
22799
22799
|
}
|
|
22800
|
-
const start = (_a = this.getDisplayStartIndex()) !== null && _a !== void 0 ? _a : 1;
|
|
22801
|
-
const end = (_b = this.getDisplayEndIndex()) !== null && _b !== void 0 ? _b : this.nestedSteps.length;
|
|
22802
22800
|
const count = this.nestedSteps.length;
|
|
22803
|
-
|
|
22801
|
+
let startVal = this.getDisplayStartIndex();
|
|
22802
|
+
let endVal = this.getDisplayEndIndex();
|
|
22803
|
+
// -1 means "Start"/"End" placeholder; use actual step numbers from nested steps (e.g. 1.1, 1.13)
|
|
22804
|
+
if (startVal == null || startVal === -1) {
|
|
22805
|
+
startVal = (_b = (_a = this.nestedSteps[0]) === null || _a === void 0 ? void 0 : _a.stepNumber) !== null && _b !== void 0 ? _b : 1;
|
|
22806
|
+
}
|
|
22807
|
+
if (endVal == null || endVal === -1) {
|
|
22808
|
+
const last = this.nestedSteps[this.nestedSteps.length - 1];
|
|
22809
|
+
endVal = (_c = last === null || last === void 0 ? void 0 : last.stepNumber) !== null && _c !== void 0 ? _c : count;
|
|
22810
|
+
}
|
|
22811
|
+
return `Steps ${startVal}-${endVal} (${count} step${count !== 1 ? 's' : ''})`;
|
|
22804
22812
|
}
|
|
22805
22813
|
getStartStepLabel() {
|
|
22806
22814
|
var _a, _b;
|