complexqa_frontend_core 1.5.1 → 1.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": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "core of web ",
5
5
  "type": "module",
6
6
  "exports": {
@@ -8,6 +8,7 @@ import { is_object } from "../../utils/utils.js";
8
8
  export class typeAutomationTestEnvironment extends familyTestAutomation
9
9
  {
10
10
  automation_test_environment_id;
11
+ automation_test_environment_name;
11
12
  host;
12
13
  protocol;
13
14
  device_type;
@@ -18,22 +19,23 @@ export class typeAutomationTestEnvironment extends familyTestAutomation
18
19
  primary_key = 'automation_test_environment_id';
19
20
 
20
21
  structure_scheme = {
21
- automation_test_environment_id: 'integer | require',
22
- host : 'string | require',
23
- protocol : 'string | require',
24
- device_type : 'string | enum | require',
25
- browser_name : 'string | enum | optional',
26
- browser_version : 'string | optional',
27
- display_preset : 'string | enum | optional',
22
+ automation_test_environment_id : 'integer | require',
23
+ host : 'string | require',
24
+ automation_test_environment_name: 'string | optional',
25
+ protocol : 'string | require',
26
+ device_type : 'string | enum | require',
27
+ browser_name : 'string | enum | optional',
28
+ browser_version : 'string | optional',
29
+ display_preset : 'string | enum | optional',
28
30
  };
29
31
 
30
32
 
31
33
  available_enum_values = {
32
- device_type: [
34
+ device_type : [
33
35
  'desktop',
34
36
  'mobile',
35
37
  ],
36
- browser_name: [
38
+ browser_name : [
37
39
  'chrome',
38
40
  'firefox',
39
41
  'webkit',
@@ -1,12 +1,40 @@
1
1
  import { familyTestAutomation } from "./1_familyTestAutomation.js";
2
+ import { is_object } from "../../utils/utils.js";
2
3
 
3
4
  /**
4
5
  * Пока - просто коллекция typeAutomationTestStep
5
6
  * Возможно, также окружение
7
+ * TestStep является упорядоченной коллекцией
8
+ *
9
+ * @todo подумать где лучше sort_order хранить
6
10
  *
7
11
  * @version v.0.1 (29/11/2025)
8
12
  */
9
13
  export class typeAutomationTestPlan extends familyTestAutomation
10
14
  {
11
15
  test_step_ids;
16
+
17
+
18
+
19
+ /**
20
+ *
21
+ * @param {object|false|undefined} data
22
+ */
23
+ constructor(data = false)
24
+ {
25
+ super();
26
+
27
+ if (data && is_object(data))
28
+ {
29
+ _.mapObject(data, (value, key) =>
30
+ {
31
+ if (this.hasOwnProperty(key))
32
+ {
33
+ this [ key ] = value;
34
+ }
35
+ });
36
+ }
37
+
38
+ return this;
39
+ }
12
40
  }
@@ -4,7 +4,7 @@ import { is_object } from "../../utils/utils.js";
4
4
  /**
5
5
  * По сути это enum
6
6
  * Но тут есть (будут) проверки на корректность, потому это отдельный тип
7
- *
7
+ *
8
8
  * @version v.0.1 (29/11/2025)
9
9
  */
10
10
  export class typeAutomationTestStepTarget extends familyTestAutomation
@@ -14,6 +14,14 @@ export class typeAutomationTestStepTarget extends familyTestAutomation
14
14
  id;
15
15
  name;
16
16
 
17
+ structure_scheme = {
18
+ partial_link_text: 'string | optional',
19
+ css : 'string | optional',
20
+ id : 'string | optional',
21
+ name : 'string | optional',
22
+ };
23
+
24
+
17
25
  /**
18
26
  *
19
27
  * @param {object|false|undefined} data