@cqa-lib/cqa-ui 1.1.378 → 1.1.380

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.
@@ -146,6 +146,29 @@ export declare class ConditionStepComponent extends BaseStepComponent implements
146
146
  */
147
147
  private hasAnyExecutedBranch;
148
148
  onJumpToTimestamp(event: Event): void;
149
+ /**
150
+ * Get the step number for a branch based on its index
151
+ * Branches consume sequential numbers at their level
152
+ *
153
+ * Top-level: condition step "1" → branches "1" (IF), "2" (ELSE IF), "3" (ELSE)
154
+ * - IF branch children: 1.1, 1.2, etc.
155
+ * - ELSE IF branch children: 2.1, 2.2, etc.
156
+ * - ELSE branch children: 3.1, 3.2, etc.
157
+ *
158
+ * Nested: condition step "3.2.1" → branches "3.2.1" (IF), "3.2.2" (ELSE IF), "3.2.3" (ELSE)
159
+ * - IF branch children: 3.2.1.1, 3.2.1.2, etc.
160
+ * - ELSE IF branch children: 3.2.2.1, 3.2.2.2, etc.
161
+ * - ELSE branch children: 3.2.3.1, 3.2.3.2, etc.
162
+ */
163
+ getBranchStepNumber(branchIndex: number): string;
164
+ /**
165
+ * Get the base step number for nested steps within the executed branch
166
+ * If ELSE branch (index 2) is executed and its step number is 3,
167
+ * its children should be numbered 3.1, 3.2, etc.
168
+ *
169
+ * For nested condition: if ELSE branch is 2.1.3, children are 2.1.3.1, 2.1.3.2, etc.
170
+ */
171
+ getExecutedBranchBaseStepNumber(): string;
149
172
  static ɵfac: i0.ɵɵFactoryDeclaration<ConditionStepComponent, never>;
150
173
  static ɵcmp: i0.ɵɵComponentDeclaration<ConditionStepComponent, "cqa-condition-step", never, { "id": "id"; "testStepResultId": "testStepResultId"; "stepNumber": "stepNumber"; "title": "title"; "status": "status"; "duration": "duration"; "timingBreakdown": "timingBreakdown"; "expanded": "expanded"; "conditionText": "conditionText"; "branches": "branches"; "failureDetails": "failureDetails"; "reasoning": "reasoning"; "confidence": "confidence"; "selfHealAnalysis": "selfHealAnalysis"; "isLoading": "isLoading"; "nestedSteps": "nestedSteps"; "hasChild": "hasChild"; "stepDeleted": "stepDeleted"; "isDebug": "isDebug"; "debugPointSet": "debugPointSet"; "parentSkipped": "parentSkipped"; "getDebugPointSetHandler": "getDebugPointSetHandler"; "onDebugPointChangeHandler": "onDebugPointChangeHandler"; "addStepMenuOptions": "addStepMenuOptions"; "stepMoreMenuOptions": "stepMoreMenuOptions"; "ifChild": "ifChild"; "activeBranchStepId": "activeBranchStepId"; "onExpandHandler": "onExpandHandler"; "onEditStepHandler": "onEditStepHandler"; "onAddStepOptionSelectHandler": "onAddStepOptionSelectHandler"; "onStepMoreOptionSelectHandler": "onStepMoreOptionSelectHandler"; "getAddStepMenuOptionsForNested": "getAddStepMenuOptionsForNested"; "getStepMoreMenuOptionsForNested": "getStepMoreMenuOptionsForNested"; "getConditionBranchesHandler": "getConditionBranchesHandler"; "isStepLoadingHandler": "isStepLoadingHandler"; "isStepExpandedHandler": "isStepExpandedHandler"; "convertMsToSecondsHandler": "convertMsToSecondsHandler"; "formatFailureDetailsHandler": "formatFailureDetailsHandler"; "getSelfHealAnalysisHandler": "getSelfHealAnalysisHandler"; "onMakeCurrentBaselineHandler": "onMakeCurrentBaselineHandler"; "onUploadBaselineHandler": "onUploadBaselineHandler"; "onAnalyzeHandler": "onAnalyzeHandler"; "onViewFullLogsHandler": "onViewFullLogsHandler"; "onSelfHealActionHandler": "onSelfHealActionHandler"; "getSelfHealLoadingStatesHandler": "getSelfHealLoadingStatesHandler"; "getLoopIterationsHandler": "getLoopIterationsHandler"; "getApiAssertionsHandler": "getApiAssertionsHandler"; "formatActionsHandler": "formatActionsHandler"; "onViewAllIterationsHandler": "onViewAllIterationsHandler"; "onConditionBranchClickHandler": "onConditionBranchClickHandler"; "onStepClickHandler": "onStepClickHandler"; "onJsonPathCopiedHandler": "onJsonPathCopiedHandler"; "onDownloadHandler": "onDownloadHandler"; "onFilePathCopiedHandler": "onFilePathCopiedHandler"; "onTextCopiedHandler": "onTextCopiedHandler"; "jumpToTimestampHandler": "jumpToTimestampHandler"; "downloadingStepId": "downloadingStepId"; "step": "step"; "isUploadingBaseline": "isUploadingBaseline"; "isMakingCurrentBaseline": "isMakingCurrentBaseline"; "isLive": "isLive"; }, { "debugPointChange": "debugPointChange"; "editStep": "editStep"; "addStepOptionSelect": "addStepOptionSelect"; "stepMoreOptionSelect": "stepMoreOptionSelect"; "onBranchClickEvent": "onBranchClickEvent"; "onExpand": "onExpand"; "makeCurrentBaseline": "makeCurrentBaseline"; "uploadBaseline": "uploadBaseline"; "analyze": "analyze"; "viewFullLogs": "viewFullLogs"; "selfHealAction": "selfHealAction"; }, never, never>;
151
174
  }
@@ -72,6 +72,7 @@ export interface BaseStepConfig {
72
72
  isStepGroupChildren?: boolean;
73
73
  stepMoreMenuOptions?: boolean;
74
74
  debugPointDisabled?: boolean;
75
+ isRunResult?: boolean;
75
76
  }
76
77
  export interface SelfHealAnalysisData {
77
78
  originalLocator: string;
@@ -190,7 +190,8 @@ export declare class TestCaseConditionStepComponent implements OnInit, OnChanges
190
190
  /** Build condition string from form values */
191
191
  private buildConditionFromForm;
192
192
  onEditFormFieldChange(controlName: string, value: string): void;
193
- /** Count steps as conditions (badges): IF = 1 + number of ELSE IF + 1 if ELSE */
193
+ /** Count and summarize condition branches using their display step numbers.
194
+ * Example: IF + 2x ELSE IF + ELSE → "Steps 6-9 (4 steps)". */
194
195
  getStepsSummary(): string;
195
196
  /** Branch type badges for step row: IF, ELSE IF (with count if multiple), ELSE */
196
197
  getBranchTypeBadges(): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqa-lib/cqa-ui",
3
- "version": "1.1.378",
3
+ "version": "1.1.380",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",