@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.
@@ -22827,10 +22827,18 @@ class TestCaseLoopStepComponent {
22827
22827
  if (this.nestedSteps.length === 0) {
22828
22828
  return '0 steps';
22829
22829
  }
22830
- const start = this.getDisplayStartIndex() ?? 1;
22831
- const end = this.getDisplayEndIndex() ?? this.nestedSteps.length;
22832
22830
  const count = this.nestedSteps.length;
22833
- return `Steps ${start}-${end} (${count} step${count !== 1 ? 's' : ''})`;
22831
+ let startVal = this.getDisplayStartIndex();
22832
+ let endVal = this.getDisplayEndIndex();
22833
+ // -1 means "Start"/"End" placeholder; use actual step numbers from nested steps (e.g. 1.1, 1.13)
22834
+ if (startVal == null || startVal === -1) {
22835
+ startVal = this.nestedSteps[0]?.stepNumber ?? 1;
22836
+ }
22837
+ if (endVal == null || endVal === -1) {
22838
+ const last = this.nestedSteps[this.nestedSteps.length - 1];
22839
+ endVal = last?.stepNumber ?? count;
22840
+ }
22841
+ return `Steps ${startVal}-${endVal} (${count} step${count !== 1 ? 's' : ''})`;
22834
22842
  }
22835
22843
  getStartStepLabel() {
22836
22844
  const start = this.getDisplayStartIndex();