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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "complexqa_frontend_core",
3
- "version": "1.31.1",
3
+ "version": "1.31.2",
4
4
  "description": "core of web ",
5
5
  "type": "module",
6
6
  "exports": {
@@ -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: false,
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