@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.
- package/esm2020/lib/execution-screen/basic-step/basic-step.component.mjs +3 -3
- package/esm2020/lib/execution-screen/condition-step/condition-step.component.mjs +50 -3
- package/esm2020/lib/execution-screen/execution-step.models.mjs +1 -1
- package/esm2020/lib/execution-screen/loop-step/loop-step.component.mjs +3 -3
- package/esm2020/lib/execution-screen/step-group/step-group.component.mjs +3 -3
- package/esm2020/lib/test-case-details/condition-step/condition-step.component.mjs +12 -3
- package/fesm2015/cqa-lib-cqa-ui.mjs +67 -10
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +66 -10
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/execution-screen/condition-step/condition-step.component.d.ts +23 -0
- package/lib/execution-screen/execution-step.models.d.ts +1 -0
- package/lib/test-case-details/condition-step/condition-step.component.d.ts +2 -1
- package/package.json +1 -1
|
@@ -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
|
}
|
|
@@ -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
|
|
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(): {
|