complexqa_frontend_core 2.0.1 → 2.1.1

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.0.1",
3
+ "version": "2.1.1",
4
4
  "description": "core of web ",
5
5
  "type": "module",
6
6
  "exports": {
@@ -15,6 +15,8 @@ export const typeTestRun_i18n = {
15
15
  tags : 'Tags',
16
16
  test_case_ids : 'Test cases',
17
17
  test_run_status : 'Status',
18
+ pass_percent : 'Pass rate',
19
+ result_counts : 'Result counts',
18
20
  created_at : 'Created at',
19
21
  updated_at : 'Updated at',
20
22
  completed_at : 'Completed at',
@@ -29,6 +31,8 @@ export const typeTestRun_i18n = {
29
31
  tags : 'Теги',
30
32
  test_case_ids : 'Тест кейсы',
31
33
  test_run_status : 'Статус',
34
+ pass_percent : 'Прохождение',
35
+ result_counts : 'Результаты',
32
36
  created_at : 'Создано',
33
37
  updated_at : 'Изменено',
34
38
  completed_at : 'Завершено',
@@ -43,6 +47,8 @@ export const typeTestRun_i18n = {
43
47
  tags : 'Tags',
44
48
  test_case_ids : 'Testfälle',
45
49
  test_run_status : 'Status',
50
+ pass_percent : 'Pass rate',
51
+ result_counts : 'Result counts',
46
52
  created_at : 'Erstellt am',
47
53
  updated_at : 'Geändert am',
48
54
  completed_at : 'Abgeschlossen am',
@@ -57,6 +63,8 @@ export const typeTestRun_i18n = {
57
63
  tags : 'الوسوم',
58
64
  test_case_ids : 'حالات الاختبار',
59
65
  test_run_status : 'الحالة',
66
+ pass_percent : 'Pass rate',
67
+ result_counts : 'Result counts',
60
68
  created_at : 'تاريخ الإنشاء',
61
69
  updated_at : 'تاريخ التحديث',
62
70
  completed_at : 'تاريخ الإكمال',
@@ -71,6 +79,8 @@ export const typeTestRun_i18n = {
71
79
  tags : 'Etiquetas',
72
80
  test_case_ids : 'Casos de prueba',
73
81
  test_run_status : 'Estado',
82
+ pass_percent : 'Pass rate',
83
+ result_counts : 'Result counts',
74
84
  created_at : 'Creado el',
75
85
  updated_at : 'Actualizado el',
76
86
  completed_at : 'Completado el',
@@ -85,6 +95,8 @@ export const typeTestRun_i18n = {
85
95
  tags : 'Tags',
86
96
  test_case_ids : 'Cas de test',
87
97
  test_run_status : 'Statut',
98
+ pass_percent : 'Pass rate',
99
+ result_counts : 'Result counts',
88
100
  created_at : 'Créé le',
89
101
  updated_at : 'Modifié le',
90
102
  completed_at : 'Terminé le',
@@ -99,6 +111,8 @@ export const typeTestRun_i18n = {
99
111
  tags : 'Պիտակներ',
100
112
  test_case_ids : 'Թեստային դեպքեր',
101
113
  test_run_status : 'Կարգավիճակ',
114
+ pass_percent : 'Pass rate',
115
+ result_counts : 'Result counts',
102
116
  created_at : 'Ստեղծված',
103
117
  updated_at : 'Թարմացված',
104
118
  completed_at : 'Ավարտված',
@@ -113,6 +127,8 @@ export const typeTestRun_i18n = {
113
127
  tags : 'Tag',
114
128
  test_case_ids : 'Casi di test',
115
129
  test_run_status : 'Stato',
130
+ pass_percent : 'Pass rate',
131
+ result_counts : 'Result counts',
116
132
  created_at : 'Creato il',
117
133
  updated_at : 'Aggiornato il',
118
134
  completed_at : 'Completato il',
@@ -127,6 +143,8 @@ export const typeTestRun_i18n = {
127
143
  tags : 'Tagi',
128
144
  test_case_ids : 'Przypadki testowe',
129
145
  test_run_status : 'Status',
146
+ pass_percent : 'Pass rate',
147
+ result_counts : 'Result counts',
130
148
  created_at : 'Utworzono',
131
149
  updated_at : 'Zaktualizowano',
132
150
  completed_at : 'Ukończono',
@@ -141,6 +159,8 @@ export const typeTestRun_i18n = {
141
159
  tags : 'Tags',
142
160
  test_case_ids : 'Casos de teste',
143
161
  test_run_status : 'Estado',
162
+ pass_percent : 'Pass rate',
163
+ result_counts : 'Result counts',
144
164
  created_at : 'Criado em',
145
165
  updated_at : 'Atualizado em',
146
166
  completed_at : 'Concluído em',
@@ -155,6 +175,8 @@ export const typeTestRun_i18n = {
155
175
  tags : 'Теглар',
156
176
  test_case_ids : 'Тест очраклары',
157
177
  test_run_status : 'Статус',
178
+ pass_percent : 'Узу',
179
+ result_counts : 'Нәтиҗәләр',
158
180
  created_at : 'Ясалган',
159
181
  updated_at : 'Яңартылган',
160
182
  completed_at : 'Тәмамланган',
@@ -42,7 +42,7 @@ export class typeAutotestResult extends familyTestAutomation
42
42
 
43
43
  create_scheme = [];
44
44
 
45
- /** @type {Record<string, string[]>} */
45
+ /** @type {Record<string, string[]>} */
46
46
  available_enum_values = {
47
47
  autotest_result_status: [ 'PENDING', 'PASSED', 'FAILED', 'SKIPPED', 'ERROR' ],
48
48
  };
@@ -50,11 +50,11 @@ export class typeAutotestResult extends familyTestAutomation
50
50
  enum_value_translate_matrix = typeAutotestResult_i18n.enum_value_translate_matrix;
51
51
  attribute_name_translate_matrix = typeAutotestResult_i18n.attribute_name_translate_matrix;
52
52
 
53
- /** @type {Record<string, string>} */
53
+ /** @type {Record<string, string>} */
54
54
  status_color = {
55
55
  PENDING: '#C4B040',
56
56
  PASSED : '#009688',
57
- FAILED : '#E53935',
57
+ FAILED : '#E66565',
58
58
  SKIPPED: '#90A4AE',
59
59
  ERROR : '#6A1B9A',
60
60
  };
@@ -77,7 +77,7 @@ export class typeAutotestRun extends familyTestAutomation
77
77
  'consecutive_error_stop',
78
78
  ];
79
79
 
80
- /** @type {Record<string, string[]>} */
80
+ /** @type {Record<string, string[]>} */
81
81
  available_enum_values = {
82
82
  autotest_run_status: [ 'PENDING', 'IN_PROGRESS', 'COMPLETED', 'CLOSED', 'CANCELLED' ],
83
83
  };
@@ -85,10 +85,10 @@ export class typeAutotestRun extends familyTestAutomation
85
85
  enum_value_translate_matrix = typeAutotestRun_i18n.enum_value_translate_matrix;
86
86
  attribute_name_translate_matrix = typeAutotestRun_i18n.attribute_name_translate_matrix;
87
87
 
88
- /** @type {Record<string, string>} */
88
+ /** @type {Record<string, string>} */
89
89
  status_color = {
90
90
  PENDING : '#C4B040',
91
- IN_PROGRESS: '#FD9A4F',
91
+ IN_PROGRESS: '#546E7A',
92
92
  COMPLETED : '#009688',
93
93
  CLOSED : '#E0E0E0',
94
94
  CANCELLED : '#9E9E9E',
@@ -1,7 +1,7 @@
1
1
  import { familyGeneralElement } from "../core/0_familyGeneralElement.js";
2
2
  import { echo, is_object } from "../../utils/utils.js";
3
3
  import { typeTeamDomain_i18n } from "../element_translate/typeTeamDomain.i18n.js";
4
- import _ from 'underscore';
4
+ import _ from 'underscore';
5
5
 
6
6
 
7
7
  /**
@@ -60,7 +60,7 @@ export class typeTeamDomain extends familyGeneralElement
60
60
  'verification_method',
61
61
  ];
62
62
 
63
- /** @type {Record<string, string[]>} */
63
+ /** @type {Record<string, string[]>} */
64
64
  available_enum_values = {
65
65
  verification_method: [ 'FILE', 'DNS_TXT' ],
66
66
  domain_status : [ 'PENDING', 'VERIFIED', 'FAILED', 'REVOKED' ],
@@ -69,9 +69,9 @@ export class typeTeamDomain extends familyGeneralElement
69
69
  enum_value_translate_matrix = typeTeamDomain_i18n.enum_value_translate_matrix;
70
70
  attribute_name_translate_matrix = typeTeamDomain_i18n.attribute_name_translate_matrix;
71
71
 
72
- /** @type {Record<string, string>} */
72
+ /** @type {Record<string, string>} */
73
73
  status_color = {
74
- PENDING : '#4D92FA',
74
+ PENDING : '#C4B040',
75
75
  VERIFIED: '#009688',
76
76
  FAILED : '#E66565',
77
77
  REVOKED : '#9E9E9E',
@@ -1,7 +1,7 @@
1
1
  import { echo, is_object } from "../../utils/utils.js";
2
2
  import { familyTestDocumentation } from "../core/1_familyTestDocumentation.js";
3
3
  import { typeTestCase_i18n } from "../element_translate/typeTestCase.i18n.js";
4
- import _ from 'underscore';
4
+ import _ from 'underscore';
5
5
 
6
6
 
7
7
  /**
@@ -58,7 +58,7 @@ export class typeTestCase extends familyTestDocumentation
58
58
  'project_id'
59
59
  ];
60
60
 
61
- /** @type {Record<string, string[]>} */
61
+ /** @type {Record<string, string[]>} */
62
62
  available_enum_values = {
63
63
  test_case_complexity: [ 'LOW', 'NORMAL', 'HIGH' ],
64
64
  test_case_importance: [ 'LOW', 'NORMAL', 'HIGH' ],
@@ -67,10 +67,10 @@ export class typeTestCase extends familyTestDocumentation
67
67
 
68
68
  enum_value_translate_matrix = typeTestCase_i18n.enum_value_translate_matrix;
69
69
 
70
- /** @type {Record<string, string>} */
70
+ /** @type {Record<string, string>} */
71
71
  status_color = {
72
72
  PENDING : '#C4B040',
73
- IN_PROGRESS: '#FD9A4F',
73
+ IN_PROGRESS: '#546E7A',
74
74
  COMPLETED : '#009688',
75
75
  CLOSED : '#E0E0E0',
76
76
  };
@@ -1,7 +1,7 @@
1
1
  import { echo, is_object } from "../../utils/utils.js";
2
2
  import { familyTestDocumentation } from "../core/1_familyTestDocumentation.js";
3
3
  import { typeTestRun_i18n } from "../element_translate/typeTestRun.i18n.js";
4
- import _ from 'underscore';
4
+ import _ from 'underscore';
5
5
 
6
6
  /**
7
7
  * Коллекция тестов для работы, она же parent для typeTestRunResult
@@ -21,8 +21,9 @@ export class typeTestRun extends familyTestDocumentation
21
21
  assigned_to; // кому назначили выполнение, пока в той же таблице, только 1 член команды
22
22
  test_case_ids; // массив тестов на запуск
23
23
  test_run_status;
24
+ pass_percent;
25
+ result_counts;
24
26
  //test_case_summary_statistic; // массив [key->value] по статусам вложенных тест-кейсов для визуализации
25
- // typeTestRunResult.test_result_status : 'PASSED', 'FAILED', 'SKIPPED', 'BLOCKED', 'RETEST'
26
27
 
27
28
  created_at;
28
29
  updated_at;
@@ -41,6 +42,8 @@ export class typeTestRun extends familyTestDocumentation
41
42
  assigned_to : 'integer | typeUser | optional',
42
43
  test_case_ids : 'array | optional',
43
44
  test_run_status : 'string | enum | require',
45
+ pass_percent : 'integer | optional',
46
+ result_counts : 'array | optional',
44
47
  created_at : 'timestamp | require',
45
48
  updated_at : 'timestamp | optional',
46
49
  completed_at : 'timestamp | optional',
@@ -52,7 +55,7 @@ export class typeTestRun extends familyTestDocumentation
52
55
  'test_case_ids'
53
56
  ];
54
57
 
55
- /** @type {Record<string, string[]>} */
58
+ /** @type {Record<string, string[]>} */
56
59
  available_enum_values = {
57
60
  test_run_status: [ 'PENDING', 'IN_PROGRESS', 'COMPLETED', 'CLOSED' ],
58
61
  };
@@ -62,10 +65,10 @@ export class typeTestRun extends familyTestDocumentation
62
65
 
63
66
  attribute_name_translate_matrix = typeTestRun_i18n.attribute_name_translate_matrix;
64
67
 
65
- /** @type {Record<string, string>} */
68
+ /** @type {Record<string, string>} */
66
69
  status_color = {
67
70
  PENDING : '#C4B040',
68
- IN_PROGRESS: '#FD9A4F',
71
+ IN_PROGRESS: '#546E7A',
69
72
  COMPLETED : '#009688',
70
73
  CLOSED : '#E0E0E0',
71
74
  };
@@ -1,7 +1,7 @@
1
1
  import { is_object } from "../../utils/utils.js";
2
2
  import { familyTestDocumentation } from "../core/1_familyTestDocumentation.js";
3
3
  import { typeTestRunResult_i18n } from "../element_translate/typeTestRunResult.i18n.js";
4
- import _ from 'underscore';
4
+ import _ from 'underscore';
5
5
 
6
6
  /**
7
7
  * 1 результат по каждому тест кейсу
@@ -46,7 +46,7 @@ export class typeTestRunResult extends familyTestDocumentation
46
46
  completed_at: 'timestamp | optional',
47
47
  };
48
48
 
49
- /** @type {Record<string, string[]>} */
49
+ /** @type {Record<string, string[]>} */
50
50
  available_enum_values = {
51
51
  test_result_status: [ 'PENDING', 'PASSED', 'FAILED', 'SKIPPED', 'BLOCKED', 'RETEST' ]
52
52
  };
@@ -54,13 +54,13 @@ export class typeTestRunResult extends familyTestDocumentation
54
54
 
55
55
  attribute_name_translate_matrix = typeTestRunResult_i18n.attribute_name_translate_matrix;
56
56
 
57
- /** @type {Record<string, string>} */
57
+ /** @type {Record<string, string>} */
58
58
  status_color = {
59
59
  PENDING: '#C4B040',
60
60
  PASSED : '#009688',
61
61
  FAILED : '#E66565',
62
- SKIPPED: '#FD9A4F',
63
- BLOCKED: '#E0E0E0',
62
+ SKIPPED: '#90A4AE',
63
+ BLOCKED: '#FD9A4F',
64
64
  RETEST : '#4D92FA',
65
65
  };
66
66
 
@@ -7,7 +7,7 @@ import { typeUtilExecutionScreenshotMultiScreenshot } from "./typeUtilExecutionS
7
7
  import { typeUtilExecutionScreenshotMultiCaptureError } from "./typeUtilExecutionScreenshotMultiCaptureError.js";
8
8
  import { typeFile } from "../family_files/typeFile.js";
9
9
  import { create_type_file_from_wire } from "../family_files/typeFileFactory.js";
10
- import _ from 'underscore';
10
+ import _ from 'underscore';
11
11
 
12
12
 
13
13
  /**
@@ -68,7 +68,7 @@ export class typeUtilExecution extends familyUtil
68
68
  captures_failed : 'integer | optional',
69
69
  };
70
70
 
71
- /** @type {Record<string, string[]>} */
71
+ /** @type {Record<string, string[]>} */
72
72
  available_enum_values = {
73
73
  execution_status: familyUtil.get_execution_status_values(),
74
74
  };
@@ -77,11 +77,11 @@ export class typeUtilExecution extends familyUtil
77
77
 
78
78
  attribute_name_translate_matrix = typeUtilExecution_i18n.attribute_name_translate_matrix;
79
79
 
80
- /** @type {Record<string, string>} */
80
+ /** @type {Record<string, string>} */
81
81
  status_color = {
82
- pending : '#4D92FA',
83
- submit_failed: '#E66565',
84
- queued : '#009688',
82
+ pending : '#C4B040',
83
+ submit_failed: '#6A1B9A',
84
+ queued : '#4D92FA',
85
85
  completed : '#009688',
86
86
  failed : '#E66565',
87
87
  };
@@ -101,9 +101,9 @@ export class typeUtilExecutionScreenshotMulti extends familyUtil
101
101
 
102
102
  /** @type {Record<string, string>} */
103
103
  status_color = {
104
- pending : '#4D92FA',
105
- submit_failed: '#E66565',
106
- queued : '#009688',
104
+ pending : '#C4B040',
105
+ submit_failed: '#6A1B9A',
106
+ queued : '#4D92FA',
107
107
  completed : '#009688',
108
108
  failed : '#E66565',
109
109
  };
@@ -4,7 +4,7 @@ import { typeUtilExecutionUrlInspect_i18n } from "../element_translate/typeUtilE
4
4
  import { typeUtilExecutionUrlInspectCheck } from "./typeUtilExecutionUrlInspectCheck.js";
5
5
  import { familyUtil_i18n } from "../element_translate/_familyUtil.i18n.js";
6
6
  import { create_type_file_from_wire } from "../family_files/typeFileFactory.js";
7
- import _ from 'underscore';
7
+ import _ from 'underscore';
8
8
 
9
9
 
10
10
  /**
@@ -61,7 +61,7 @@ export class typeUtilExecutionUrlInspect extends familyUtil
61
61
  'page_path',
62
62
  ];
63
63
 
64
- /** @type {Record<string, string[]>} */
64
+ /** @type {Record<string, string[]>} */
65
65
  available_enum_values = {
66
66
  execution_status: familyUtil.get_execution_status_values(),
67
67
  suite_status : [ 'CREATED', 'QUEUED', 'RUNNING', 'COMPLETED', 'PARTIAL', 'FAILED', 'SUBMIT_FAILED' ],
@@ -74,15 +74,15 @@ export class typeUtilExecutionUrlInspect extends familyUtil
74
74
 
75
75
  attribute_name_translate_matrix = typeUtilExecutionUrlInspect_i18n.attribute_name_translate_matrix;
76
76
 
77
- /** @type {Record<string, string>} */
77
+ /** @type {Record<string, string>} */
78
78
  status_color = {
79
- CREATED : '#4D92FA',
80
- QUEUED : '#009688',
81
- RUNNING : '#4D92FA',
79
+ CREATED : '#C4B040',
80
+ QUEUED : '#4D92FA',
81
+ RUNNING : '#546E7A',
82
82
  COMPLETED : '#009688',
83
- PARTIAL : '#F0A202',
83
+ PARTIAL : '#FD9A4F',
84
84
  FAILED : '#E66565',
85
- SUBMIT_FAILED: '#E66565',
85
+ SUBMIT_FAILED: '#6A1B9A',
86
86
  };
87
87
 
88
88
  clone_element = false;
@@ -1,7 +1,7 @@
1
1
  import { familyUtil } from "./familyUtil.js";
2
2
  import { is_object } from "../../utils/utils.js";
3
3
  import { typeUtilExecutionUrlInspectCheck_i18n } from "../element_translate/typeUtilExecutionUrlInspectCheck.i18n.js";
4
- import _ from 'underscore';
4
+ import _ from 'underscore';
5
5
 
6
6
 
7
7
  /**
@@ -35,7 +35,7 @@ export class typeUtilExecutionUrlInspectCheck extends familyUtil
35
35
  detail_message : 'string | optional',
36
36
  };
37
37
 
38
- /** @type {Record<string, string[]>} */
38
+ /** @type {Record<string, string[]>} */
39
39
  available_enum_values = {
40
40
  check_kind : [ 'DNS', 'TCP_80', 'TCP_443', 'TLS', 'HTTP', 'HTTPS', 'SECURITY_HEADERS', 'BROWSER' ],
41
41
  check_status: [ 'PENDING', 'QUEUED', 'RUNNING', 'COMPLETED', 'SKIPPED', 'ERROR' ],
@@ -63,14 +63,14 @@ export class typeUtilExecutionUrlInspectCheck extends familyUtil
63
63
  enum_value_translate_matrix = typeUtilExecutionUrlInspectCheck_i18n.enum_value_translate_matrix;
64
64
  attribute_name_translate_matrix = typeUtilExecutionUrlInspectCheck_i18n.attribute_name_translate_matrix;
65
65
 
66
- /** @type {Record<string, string>} */
66
+ /** @type {Record<string, string>} */
67
67
  status_color = {
68
- PENDING : '#4D92FA',
69
- QUEUED : '#009688',
70
- RUNNING : '#4D92FA',
68
+ PENDING : '#C4B040',
69
+ QUEUED : '#4D92FA',
70
+ RUNNING : '#546E7A',
71
71
  COMPLETED: '#009688',
72
- SKIPPED : '#9E9E9E',
73
- ERROR : '#E66565',
72
+ SKIPPED : '#90A4AE',
73
+ ERROR : '#6A1B9A',
74
74
  };
75
75
 
76
76
  clone_element = false;