@cqa-lib/cqa-ui 1.1.378 → 1.1.379

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.
@@ -25137,10 +25137,19 @@ class TestCaseConditionStepComponent {
25137
25137
  onEditFormFieldChange(controlName, value) {
25138
25138
  this.editForm.get(controlName)?.setValue(value);
25139
25139
  }
25140
- /** Count steps as conditions (badges): IF = 1 + number of ELSE IF + 1 if ELSE */
25140
+ /** Count and summarize condition branches using their display step numbers.
25141
+ * Example: IF + 2x ELSE IF + ELSE → "Steps 6-9 (4 steps)". */
25141
25142
  getStepsSummary() {
25142
25143
  const branchCount = this.branches?.length ?? 0;
25143
- return branchCount > 0 ? `${branchCount} step${branchCount !== 1 ? 's' : ''}` : '0 steps';
25144
+ if (branchCount === 0) {
25145
+ return '0 steps';
25146
+ }
25147
+ const first = this.getBranchDisplayNumber(0);
25148
+ const last = this.getBranchDisplayNumber(branchCount - 1);
25149
+ if (branchCount === 1) {
25150
+ return `Steps ${first} (1 step)`;
25151
+ }
25152
+ return `Steps ${first}-${last} (${branchCount} steps)`;
25144
25153
  }
25145
25154
  /** Branch type badges for step row: IF, ELSE IF (with count if multiple), ELSE */
25146
25155
  getBranchTypeBadges() {