complexqa_frontend_core 1.31.1 → 1.31.2
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/package.json +1 -1
- package/publish/app_configuration/table/sections/autotest_case.js +6 -3
- package/publish/types/core/1_familyTestAutomation.js +14 -0
- package/publish/types/element_translate/typeObjectRepositoryElement.i18n.js +10 -10
- package/publish/types/family_elements/1_familyTestAutomation.js +14 -0
- package/publish/types/family_elements/typeAutotestCase.js +2 -0
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import { createColumn, createGoToColumn, createPrimaryKeyColumn, createRowSelect
|
|
|
4
4
|
import { createListingFor, registerSection } from '../helpers/section_registry.js';
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
function build_autotest_case_listing_columns(locale, { include_select = true, include_goto = true, include_kind = false } = {})
|
|
7
|
+
function build_autotest_case_listing_columns(locale, { include_select = true, include_goto = true, include_kind = false, kind_editable = false } = {})
|
|
8
8
|
{
|
|
9
9
|
const model = new typeAutotestCase();
|
|
10
10
|
const columns = [];
|
|
@@ -30,7 +30,7 @@ function build_autotest_case_listing_columns(locale, { include_select = true, in
|
|
|
30
30
|
{
|
|
31
31
|
columns.push(createColumn(model, locale, 'autotest_case_kind', {
|
|
32
32
|
width : '140',
|
|
33
|
-
is_editable:
|
|
33
|
+
is_editable: kind_editable,
|
|
34
34
|
is_required: true,
|
|
35
35
|
}));
|
|
36
36
|
}
|
|
@@ -60,7 +60,10 @@ export function bootstrap_autotest_case(config)
|
|
|
60
60
|
{
|
|
61
61
|
const locale = UserService.get_current_language();
|
|
62
62
|
|
|
63
|
-
registerSection(config, 'autotest_case', 'listing', build_autotest_case_listing_columns(locale
|
|
63
|
+
registerSection(config, 'autotest_case', 'listing', build_autotest_case_listing_columns(locale, {
|
|
64
|
+
include_kind : true,
|
|
65
|
+
kind_editable: true,
|
|
66
|
+
}), {
|
|
64
67
|
for: createListingFor([ 'project_id' ], { add: [ 'tags', 'pre_autotest_case_ids' ] }),
|
|
65
68
|
});
|
|
66
69
|
|
|
@@ -8,6 +8,20 @@ import { familyGeneralElement } from "./0_familyGeneralElement.js";
|
|
|
8
8
|
*/
|
|
9
9
|
export class familyTestAutomation extends familyGeneralElement
|
|
10
10
|
{
|
|
11
|
+
/**
|
|
12
|
+
* Hydrated on element search via options.add: ['tags'].
|
|
13
|
+
*
|
|
14
|
+
* @type {Array<object>|undefined}
|
|
15
|
+
*/
|
|
16
|
+
tags;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Hydrated on element search via options.add: ['custom_properties'].
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<object>|undefined}
|
|
22
|
+
*/
|
|
23
|
+
custom_properties;
|
|
24
|
+
|
|
11
25
|
|
|
12
26
|
/**
|
|
13
27
|
*
|
|
@@ -62,30 +62,30 @@ export const typeObjectRepositoryElement_i18n = {
|
|
|
62
62
|
},
|
|
63
63
|
ru: {
|
|
64
64
|
locator_kind: {
|
|
65
|
-
ROLE : '
|
|
66
|
-
LABEL : '
|
|
67
|
-
PLACEHOLDER: '
|
|
65
|
+
ROLE : 'Role',
|
|
66
|
+
LABEL : 'Label',
|
|
67
|
+
PLACEHOLDER: 'Placeholder',
|
|
68
68
|
TESTID : 'Test id',
|
|
69
|
-
TEXT : '
|
|
69
|
+
TEXT : 'Text',
|
|
70
70
|
CSS : 'CSS',
|
|
71
71
|
ID : 'ID',
|
|
72
72
|
NAME : 'Name',
|
|
73
73
|
XPATH : 'XPath',
|
|
74
|
-
SELECTOR : '
|
|
74
|
+
SELECTOR : 'Selector',
|
|
75
75
|
},
|
|
76
76
|
},
|
|
77
77
|
tt: {
|
|
78
78
|
locator_kind: {
|
|
79
|
-
ROLE : '
|
|
80
|
-
LABEL : '
|
|
81
|
-
PLACEHOLDER: '
|
|
79
|
+
ROLE : 'Role',
|
|
80
|
+
LABEL : 'Label',
|
|
81
|
+
PLACEHOLDER: 'Placeholder',
|
|
82
82
|
TESTID : 'Test id',
|
|
83
|
-
TEXT : '
|
|
83
|
+
TEXT : 'Text',
|
|
84
84
|
CSS : 'CSS',
|
|
85
85
|
ID : 'ID',
|
|
86
86
|
NAME : 'Name',
|
|
87
87
|
XPATH : 'XPath',
|
|
88
|
-
SELECTOR : '
|
|
88
|
+
SELECTOR : 'Selector',
|
|
89
89
|
},
|
|
90
90
|
},
|
|
91
91
|
},
|
|
@@ -8,6 +8,20 @@ import { familyGeneralElement } from "./0_familyGeneralElement.js";
|
|
|
8
8
|
*/
|
|
9
9
|
export class familyTestAutomation extends familyGeneralElement
|
|
10
10
|
{
|
|
11
|
+
/**
|
|
12
|
+
* Hydrated on element search via options.add: ['tags'].
|
|
13
|
+
*
|
|
14
|
+
* @type {Array<object>|undefined}
|
|
15
|
+
*/
|
|
16
|
+
tags;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Hydrated on element search via options.add: ['custom_properties'].
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<object>|undefined}
|
|
22
|
+
*/
|
|
23
|
+
custom_properties;
|
|
24
|
+
|
|
11
25
|
|
|
12
26
|
/**
|
|
13
27
|
*
|
|
@@ -109,6 +109,8 @@ export class typeAutotestCase extends familyTestAutomation
|
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
111
|
* Compile from typeTestCase. Separate entry from empty create.
|
|
112
|
+
* Success is a draft: api_result includes compile_skipped_steps (not a column)
|
|
113
|
+
* listing source steps that did not convert. Creation still succeeds.
|
|
112
114
|
*
|
|
113
115
|
* @param {object} payload
|
|
114
116
|
* @param {number} payload.test_case_id
|