@cqa-lib/cqa-ui 1.1.507 → 1.1.508
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/test-case-details/test-case-details-edit/test-case-details-edit.component.mjs +40 -8
- package/esm2020/lib/test-case-details/test-case-details.component.mjs +5 -3
- package/fesm2015/cqa-lib-cqa-ui.mjs +39 -6
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +39 -6
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/test-case-details/test-case-details-edit/test-case-details-edit.component.d.ts +12 -1
- package/lib/test-case-details/test-case-details.component.d.ts +3 -1
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import { EventEmitter, ChangeDetectorRef, OnInit, OnChanges, SimpleChanges } fro
|
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { TestCaseDetailsConfigSection, TestCaseDetailsMetadataItem } from '../test-case-details.models';
|
|
4
4
|
import { DynamicSelectFieldConfig, SelectOption } from '../../dynamic-select/dynamic-select-field.component';
|
|
5
|
+
import { DropdownOption } from '../../dropdown-button/dropdown-button.component';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
/** Override config for a specific select. Use for server-side search, load more, custom options. */
|
|
7
8
|
export interface SelectConfigOverride {
|
|
@@ -110,6 +111,8 @@ export declare class TestCaseDetailsEditComponent implements OnInit, OnChanges {
|
|
|
110
111
|
apiMockingShowProgress: boolean;
|
|
111
112
|
apiMockingSummaryText?: string;
|
|
112
113
|
apiMockingPercentText?: string;
|
|
114
|
+
/** Org-level default for Test Case Timeout (minutes). Used to flag the input as "ORG level" vs "Custom". */
|
|
115
|
+
orgLevelTestCaseTimeout?: string | number | null;
|
|
113
116
|
save: EventEmitter<TestCaseDetailsEditFormData>;
|
|
114
117
|
cancel: EventEmitter<void>;
|
|
115
118
|
/** Emitted when user searches in a select (serverSearch mode). Call API and update options via selectConfigOverrides. */
|
|
@@ -148,6 +151,8 @@ export declare class TestCaseDetailsEditComponent implements OnInit, OnChanges {
|
|
|
148
151
|
/** Local edit-mode mirror of the `storeMock` boolean. */
|
|
149
152
|
editApiMockingStoreMock: boolean;
|
|
150
153
|
testCaseTimeout: string;
|
|
154
|
+
/** 'org' → input disabled, payload sends null for testcaseTimeout; 'custom' → input enabled, payload sends the typed value. */
|
|
155
|
+
testCaseTimeoutMode: 'org' | 'custom';
|
|
151
156
|
waitTimeoutLocators: string;
|
|
152
157
|
autoWaitEnabled: boolean;
|
|
153
158
|
retryFailedSteps: string;
|
|
@@ -220,6 +225,12 @@ export declare class TestCaseDetailsEditComponent implements OnInit, OnChanges {
|
|
|
220
225
|
private getWaitsRetriesValue;
|
|
221
226
|
/** Strip trailing 's' from value (e.g. "10s" -> "10") for display in timeout inputs */
|
|
222
227
|
private stripTrailingUnitS;
|
|
228
|
+
readonly testCaseTimeoutModeOptions: DropdownOption[];
|
|
229
|
+
/** Value shown in the disabled (org) or enabled (custom) Test Case Timeout input. */
|
|
230
|
+
get testCaseTimeoutDisplayValue(): string;
|
|
231
|
+
onTestCaseTimeoutModeChange(mode: 'org' | 'custom'): void;
|
|
232
|
+
/** True when the portal wrapped the Test Case Timeout value as "Org Level (...)", meaning the TC API returned null. */
|
|
233
|
+
private isTestCaseTimeoutFromOrg;
|
|
223
234
|
/** Allow only digits; used for Retry Failed Steps, Test Case Timeout, Wait Timeout inputs */
|
|
224
235
|
onlyDigits(val: string): string;
|
|
225
236
|
/** For update: use "0" when value is empty so API gets a number */
|
|
@@ -259,5 +270,5 @@ export declare class TestCaseDetailsEditComponent implements OnInit, OnChanges {
|
|
|
259
270
|
};
|
|
260
271
|
getLabelCloseIconColor(_label: string): string;
|
|
261
272
|
static ɵfac: i0.ɵɵFactoryDeclaration<TestCaseDetailsEditComponent, never>;
|
|
262
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TestCaseDetailsEditComponent, "cqa-test-case-details-edit", never, { "descriptionTitle": "descriptionTitle"; "descriptionContent": "descriptionContent"; "enableMarkdown": "enableMarkdown"; "metadataItems": "metadataItems"; "labels": "labels"; "configTitle": "configTitle"; "configSections": "configSections"; "configSectionsRow2": "configSectionsRow2"; "isSaving": "isSaving"; "prerequisiteCaseOptions": "prerequisiteCaseOptions"; "platform": "platform"; "isStepGroup": "isStepGroup"; "selectConfigOverrides": "selectConfigOverrides"; "showApiMockingCard": "showApiMockingCard"; "apiMockingTitle": "apiMockingTitle"; "apiMockingStatusLabel": "apiMockingStatusLabel"; "apiMockingCaptureLabel": "apiMockingCaptureLabel"; "apiMockingCaptureHint": "apiMockingCaptureHint"; "apiMockingRenewLabel": "apiMockingRenewLabel"; "apiMockingRenewHint": "apiMockingRenewHint"; "apiMockingRestoreMock": "apiMockingRestoreMock"; "apiMockingStoreMock": "apiMockingStoreMock"; "apiMockingMockedApisCount": "apiMockingMockedApisCount"; "apiMockingTotalApisCount": "apiMockingTotalApisCount"; "apiMockingProgressPercent": "apiMockingProgressPercent"; "apiMockingShowProgress": "apiMockingShowProgress"; "apiMockingSummaryText": "apiMockingSummaryText"; "apiMockingPercentText": "apiMockingPercentText"; }, { "save": "save"; "cancel": "cancel"; "selectSearch": "selectSearch"; "selectLoadMore": "selectLoadMore"; "selectOpened": "selectOpened"; "selectionChange": "selectionChange"; "labelAdded": "labelAdded"; "apiMockingRestoreMockChange": "apiMockingRestoreMockChange"; "apiMockingStoreMockChange": "apiMockingStoreMockChange"; }, never, never>;
|
|
273
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TestCaseDetailsEditComponent, "cqa-test-case-details-edit", never, { "descriptionTitle": "descriptionTitle"; "descriptionContent": "descriptionContent"; "enableMarkdown": "enableMarkdown"; "metadataItems": "metadataItems"; "labels": "labels"; "configTitle": "configTitle"; "configSections": "configSections"; "configSectionsRow2": "configSectionsRow2"; "isSaving": "isSaving"; "prerequisiteCaseOptions": "prerequisiteCaseOptions"; "platform": "platform"; "isStepGroup": "isStepGroup"; "selectConfigOverrides": "selectConfigOverrides"; "showApiMockingCard": "showApiMockingCard"; "apiMockingTitle": "apiMockingTitle"; "apiMockingStatusLabel": "apiMockingStatusLabel"; "apiMockingCaptureLabel": "apiMockingCaptureLabel"; "apiMockingCaptureHint": "apiMockingCaptureHint"; "apiMockingRenewLabel": "apiMockingRenewLabel"; "apiMockingRenewHint": "apiMockingRenewHint"; "apiMockingRestoreMock": "apiMockingRestoreMock"; "apiMockingStoreMock": "apiMockingStoreMock"; "apiMockingMockedApisCount": "apiMockingMockedApisCount"; "apiMockingTotalApisCount": "apiMockingTotalApisCount"; "apiMockingProgressPercent": "apiMockingProgressPercent"; "apiMockingShowProgress": "apiMockingShowProgress"; "apiMockingSummaryText": "apiMockingSummaryText"; "apiMockingPercentText": "apiMockingPercentText"; "orgLevelTestCaseTimeout": "orgLevelTestCaseTimeout"; }, { "save": "save"; "cancel": "cancel"; "selectSearch": "selectSearch"; "selectLoadMore": "selectLoadMore"; "selectOpened": "selectOpened"; "selectionChange": "selectionChange"; "labelAdded": "labelAdded"; "apiMockingRestoreMockChange": "apiMockingRestoreMockChange"; "apiMockingStoreMockChange": "apiMockingStoreMockChange"; }, never, never>;
|
|
263
274
|
}
|
|
@@ -66,6 +66,8 @@ export declare class TestCaseDetailsComponent implements OnInit, OnChanges {
|
|
|
66
66
|
apiMockingSummaryText?: string;
|
|
67
67
|
apiMockingPercentText?: string;
|
|
68
68
|
apiMockingConfigureButtonLabel: string;
|
|
69
|
+
/** Org-level default for Test Case Timeout (minutes). Forwarded to edit mode to toggle the "ORG level"/"Custom" badge. */
|
|
70
|
+
orgLevelTestCaseTimeout?: string | number | null;
|
|
69
71
|
/** Labels to filter out from metadata for step groups */
|
|
70
72
|
private readonly stepGroupExcludedMetadataLabels;
|
|
71
73
|
/** When true, description (view mode) is expanded; when false, clamped to 4 lines with Read more */
|
|
@@ -111,5 +113,5 @@ export declare class TestCaseDetailsComponent implements OnInit, OnChanges {
|
|
|
111
113
|
/** Text color for metadata value (e.g. red for critical priority) */
|
|
112
114
|
getValueTextClass(item: TestCaseDetailsMetadataItem): string;
|
|
113
115
|
static ɵfac: i0.ɵɵFactoryDeclaration<TestCaseDetailsComponent, never>;
|
|
114
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TestCaseDetailsComponent, "cqa-test-case-details", never, { "editing": "editing"; "startInEditMode": "startInEditMode"; "descriptionTitle": "descriptionTitle"; "descriptionContent": "descriptionContent"; "enableMarkdown": "enableMarkdown"; "showEditButton": "showEditButton"; "metadataItems": "metadataItems"; "labels": "labels"; "configTitle": "configTitle"; "configSections": "configSections"; "configSectionsRow2": "configSectionsRow2"; "platform": "platform"; "isStepGroup": "isStepGroup"; "selectConfigOverrides": "selectConfigOverrides"; "isSaving": "isSaving"; "showApiMockingCard": "showApiMockingCard"; "apiMockingTitle": "apiMockingTitle"; "apiMockingStatusLabel": "apiMockingStatusLabel"; "apiMockingCaptureLabel": "apiMockingCaptureLabel"; "apiMockingRenewLabel": "apiMockingRenewLabel"; "apiMockingCaptureHint": "apiMockingCaptureHint"; "apiMockingRenewHint": "apiMockingRenewHint"; "apiMockingRestoreMock": "apiMockingRestoreMock"; "apiMockingStoreMock": "apiMockingStoreMock"; "apiMockingMockedApisCount": "apiMockingMockedApisCount"; "apiMockingTotalApisCount": "apiMockingTotalApisCount"; "apiMockingProgressPercent": "apiMockingProgressPercent"; "apiMockingShowProgress": "apiMockingShowProgress"; "apiMockingSummaryText": "apiMockingSummaryText"; "apiMockingPercentText": "apiMockingPercentText"; "apiMockingConfigureButtonLabel": "apiMockingConfigureButtonLabel"; }, { "editDescription": "editDescription"; "cancel": "cancel"; "saveChanges": "saveChanges"; "metadataLinkClick": "metadataLinkClick"; "selectSearch": "selectSearch"; "selectLoadMore": "selectLoadMore"; "selectOpened": "selectOpened"; "selectionChange": "selectionChange"; "labelAdded": "labelAdded"; "configureApiMocking": "configureApiMocking"; "apiMockingRestoreMockChange": "apiMockingRestoreMockChange"; "apiMockingStoreMockChange": "apiMockingStoreMockChange"; }, never, never>;
|
|
116
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TestCaseDetailsComponent, "cqa-test-case-details", never, { "editing": "editing"; "startInEditMode": "startInEditMode"; "descriptionTitle": "descriptionTitle"; "descriptionContent": "descriptionContent"; "enableMarkdown": "enableMarkdown"; "showEditButton": "showEditButton"; "metadataItems": "metadataItems"; "labels": "labels"; "configTitle": "configTitle"; "configSections": "configSections"; "configSectionsRow2": "configSectionsRow2"; "platform": "platform"; "isStepGroup": "isStepGroup"; "selectConfigOverrides": "selectConfigOverrides"; "isSaving": "isSaving"; "showApiMockingCard": "showApiMockingCard"; "apiMockingTitle": "apiMockingTitle"; "apiMockingStatusLabel": "apiMockingStatusLabel"; "apiMockingCaptureLabel": "apiMockingCaptureLabel"; "apiMockingRenewLabel": "apiMockingRenewLabel"; "apiMockingCaptureHint": "apiMockingCaptureHint"; "apiMockingRenewHint": "apiMockingRenewHint"; "apiMockingRestoreMock": "apiMockingRestoreMock"; "apiMockingStoreMock": "apiMockingStoreMock"; "apiMockingMockedApisCount": "apiMockingMockedApisCount"; "apiMockingTotalApisCount": "apiMockingTotalApisCount"; "apiMockingProgressPercent": "apiMockingProgressPercent"; "apiMockingShowProgress": "apiMockingShowProgress"; "apiMockingSummaryText": "apiMockingSummaryText"; "apiMockingPercentText": "apiMockingPercentText"; "apiMockingConfigureButtonLabel": "apiMockingConfigureButtonLabel"; "orgLevelTestCaseTimeout": "orgLevelTestCaseTimeout"; }, { "editDescription": "editDescription"; "cancel": "cancel"; "saveChanges": "saveChanges"; "metadataLinkClick": "metadataLinkClick"; "selectSearch": "selectSearch"; "selectLoadMore": "selectLoadMore"; "selectOpened": "selectOpened"; "selectionChange": "selectionChange"; "labelAdded": "labelAdded"; "configureApiMocking": "configureApiMocking"; "apiMockingRestoreMockChange": "apiMockingRestoreMockChange"; "apiMockingStoreMockChange": "apiMockingStoreMockChange"; }, never, never>;
|
|
115
117
|
}
|