@cqa-lib/cqa-ui 1.1.471 → 1.1.472
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 +12 -3
- package/fesm2015/cqa-lib-cqa-ui.mjs +22 -13
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +11 -2
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -40052,7 +40052,8 @@ class TestCaseDetailsEditComponent {
|
|
|
40052
40052
|
this.dataDrivenEnabled = !!this.getConfigItemValue('Key Flags', 'Data Driven');
|
|
40053
40053
|
const enableAiSmartness = this.getConfigItemValue('AI Configuration', 'Enable AI Smartness');
|
|
40054
40054
|
const defaultAiAction = this.getConfigItemValue('AI Configuration', 'Default AI Action');
|
|
40055
|
-
const
|
|
40055
|
+
const knowledgeBaseDefaultTestCaseRaw = this.getConfigItemValue('AI Configuration', 'Knowledge Base Default Test Case');
|
|
40056
|
+
const knowledgeBaseDefaultTestCase = this.resolveToOptionValue(knowledgeBaseDefaultTestCaseRaw, this.selectConfigOverrides?.['knowledgeBaseDefaultTestCase']?.options) ?? knowledgeBaseDefaultTestCaseRaw;
|
|
40056
40057
|
const useAiMetadataRaw = this.getConfigItemValue('AI Configuration', 'Enable AI metadata collection');
|
|
40057
40058
|
const useAiMetadata = this.normalizeBooleanSelectValue(useAiMetadataRaw);
|
|
40058
40059
|
const prerequisiteCases = this.getPrerequisiteCasesFromConfig();
|
|
@@ -40186,6 +40187,13 @@ class TestCaseDetailsEditComponent {
|
|
|
40186
40187
|
if (defaultAiRaw)
|
|
40187
40188
|
patch['defaultAiAction'] = defaultAiRaw;
|
|
40188
40189
|
}
|
|
40190
|
+
const kbCtrl = this.editForm.get('knowledgeBaseDefaultTestCase');
|
|
40191
|
+
if (kbCtrl && !kbCtrl.dirty) {
|
|
40192
|
+
const kbRaw = this.getConfigItemValue('AI Configuration', 'Knowledge Base Default Test Case');
|
|
40193
|
+
const kbResolved = this.resolveToOptionValue(kbRaw, this.selectConfigOverrides?.['knowledgeBaseDefaultTestCase']?.options) ?? kbRaw;
|
|
40194
|
+
if (kbResolved)
|
|
40195
|
+
patch['knowledgeBaseDefaultTestCase'] = kbResolved;
|
|
40196
|
+
}
|
|
40189
40197
|
if (Object.keys(patch).length) {
|
|
40190
40198
|
this.editForm.patchValue(patch, { emitEvent: false });
|
|
40191
40199
|
}
|
|
@@ -40221,7 +40229,8 @@ class TestCaseDetailsEditComponent {
|
|
|
40221
40229
|
if (changes['configSections'] || changes['configSectionsRow2']) {
|
|
40222
40230
|
const enableAiSmartness = this.getConfigItemValue('AI Configuration', 'Enable AI Smartness');
|
|
40223
40231
|
const defaultAiAction = this.getConfigItemValue('AI Configuration', 'Default AI Action');
|
|
40224
|
-
const
|
|
40232
|
+
const knowledgeBaseDefaultTestCaseRaw = this.getConfigItemValue('AI Configuration', 'Knowledge Base Default Test Case');
|
|
40233
|
+
const knowledgeBaseDefaultTestCase = this.resolveToOptionValue(knowledgeBaseDefaultTestCaseRaw, this.selectConfigOverrides?.['knowledgeBaseDefaultTestCase']?.options) ?? knowledgeBaseDefaultTestCaseRaw;
|
|
40225
40234
|
const prerequisiteCases = this.getPrerequisiteCasesFromConfig();
|
|
40226
40235
|
const typeRaw = (this.getConfigItemValue('Execution', 'Type') || this.typeItem?.value) ?? '';
|
|
40227
40236
|
const testDataProfileRaw = this.getConfigItemValue('Execution', 'Test Data Profile') ?? '';
|