complexqa_frontend_core 2.5.1 → 2.5.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": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "description": "core of web ",
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,5 +1,6 @@
1
1
  import { echo, is_object } from "../../utils/utils.js";
2
2
  import { familyTestAutomation } from "../core/1_familyTestAutomation.js";
3
+ import { typeAutotestCase } from "./typeAutotestCase.js";
3
4
  import { typeAutotestStep_i18n } from "../element_translate/typeAutotestStep.i18n.js";
4
5
  import _ from 'underscore';
5
6
 
@@ -22,6 +23,12 @@ export class typeAutotestStep extends familyTestAutomation
22
23
  expected_value;
23
24
  object_repository_page_id;
24
25
  object_repository_element_id;
26
+ /** Гидрируется в search: название страницы каталога. Не пишется в save. */
27
+ object_repository_page;
28
+ /** Гидрируется в search: название элемента каталога. Не пишется в save. */
29
+ object_repository_element;
30
+ /** Гидрируется в search через options.add autotest_case. Не пишется в save. */
31
+ autotest_case;
25
32
  value_source_type;
26
33
  value_source_field;
27
34
  created_at;
@@ -128,10 +135,16 @@ export class typeAutotestStep extends familyTestAutomation
128
135
  {
129
136
  _.mapObject(data, (value, key) =>
130
137
  {
131
- if (this.hasOwnProperty(key))
138
+ if (!this.hasOwnProperty(key))
132
139
  {
133
- this[ key ] = value;
140
+ return;
134
141
  }
142
+ if (key === 'autotest_case' && is_object(value))
143
+ {
144
+ this.autotest_case = new typeAutotestCase(value);
145
+ return;
146
+ }
147
+ this[ key ] = value;
135
148
  });
136
149
  }
137
150
 
@@ -15,6 +15,8 @@ export class typeAutotestStep extends familyTestAutomation {
15
15
  expected_value: any;
16
16
  object_repository_page_id: any;
17
17
  object_repository_element_id: any;
18
+ object_repository_page: any;
19
+ object_repository_element: any;
18
20
  value_source_type: any;
19
21
  value_source_field: any;
20
22
  created_at: any;