complexqa_frontend_core 1.10.1 → 1.10.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
|
@@ -15,4 +15,47 @@ export class TestCaseStepApi extends ApiAbstractElementClass
|
|
|
15
15
|
super(options);
|
|
16
16
|
this.set_element_class_instance(typeTestCaseStep);
|
|
17
17
|
}
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/******************************************************************************************/
|
|
22
|
+
/******************************************************************************************/
|
|
23
|
+
/******************************************************************************************/
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @version v.1.0 (14/03/2026)
|
|
29
|
+
*/
|
|
30
|
+
async increase_sort_order(payload)
|
|
31
|
+
{
|
|
32
|
+
let url = `/${ this.api_prefix }/${ this.module_prefix }/increase_sort_order`;
|
|
33
|
+
|
|
34
|
+
payload = this.handle_request_payload(payload);
|
|
35
|
+
let response = this.api_request(url, payload);
|
|
36
|
+
response = this.handle_response(response);
|
|
37
|
+
|
|
38
|
+
return {
|
|
39
|
+
response: response,
|
|
40
|
+
payload : payload
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @version v.1.0 (14/03/2026)
|
|
47
|
+
*/
|
|
48
|
+
async decrease_sort_order(payload)
|
|
49
|
+
{
|
|
50
|
+
let url = `/${ this.api_prefix }/${ this.module_prefix }/decrease_sort_order`;
|
|
51
|
+
|
|
52
|
+
payload = this.handle_request_payload(payload);
|
|
53
|
+
let response = this.api_request(url, payload);
|
|
54
|
+
response = this.handle_response(response);
|
|
55
|
+
|
|
56
|
+
return {
|
|
57
|
+
response: response,
|
|
58
|
+
payload : payload
|
|
59
|
+
};
|
|
60
|
+
}
|
|
18
61
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { is_object } from "../../utils/utils";
|
|
1
|
+
import { echo, is_object } from "../../utils/utils";
|
|
2
2
|
import { familyTestDocumentation } from "./1_familyTestDocumentation.js";
|
|
3
3
|
|
|
4
4
|
|
|
@@ -111,4 +111,91 @@ export class typeTestCaseStep extends familyTestDocumentation
|
|
|
111
111
|
{
|
|
112
112
|
return this.test_suite_name;
|
|
113
113
|
}
|
|
114
|
+
|
|
115
|
+
/******************************************************************************************/
|
|
116
|
+
/******************************************************************************************/
|
|
117
|
+
/******************************************************************************************/
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @version v.1.0 (14/03/2026)
|
|
122
|
+
* @param element
|
|
123
|
+
* @param callback
|
|
124
|
+
*/
|
|
125
|
+
increase_sort_order(element = false, callback)
|
|
126
|
+
{
|
|
127
|
+
if (!element)
|
|
128
|
+
{
|
|
129
|
+
element = this;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
let payload = element
|
|
133
|
+
if (typeof callback?.before === 'function')
|
|
134
|
+
{
|
|
135
|
+
callback?.before({ payload });
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
return ApiService[ this.api_key ].increase_sort_order(payload).then((response) =>
|
|
139
|
+
{
|
|
140
|
+
if (typeof callback?.success === 'function')
|
|
141
|
+
{
|
|
142
|
+
callback?.success({ response, payload })
|
|
143
|
+
}
|
|
144
|
+
}).catch((error) =>
|
|
145
|
+
{
|
|
146
|
+
echo({ error });
|
|
147
|
+
if (typeof callback?.error === 'function')
|
|
148
|
+
{
|
|
149
|
+
callback?.error({ error, payload })
|
|
150
|
+
}
|
|
151
|
+
}).finally((response) =>
|
|
152
|
+
{
|
|
153
|
+
if (typeof callback?.final === 'function')
|
|
154
|
+
{
|
|
155
|
+
callback?.final({ response, payload })
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
* @version v.1.0 (14/03/2026)
|
|
164
|
+
* @param element
|
|
165
|
+
* @param callback
|
|
166
|
+
*/
|
|
167
|
+
decrease_sort_order(element = false, callback)
|
|
168
|
+
{
|
|
169
|
+
if (!element)
|
|
170
|
+
{
|
|
171
|
+
element = this;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
let payload = element
|
|
175
|
+
if (typeof callback?.before === 'function')
|
|
176
|
+
{
|
|
177
|
+
callback?.before({ payload });
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
return ApiService[ this.api_key ].decrease_sort_order(payload).then((response) =>
|
|
181
|
+
{
|
|
182
|
+
if (typeof callback?.success === 'function')
|
|
183
|
+
{
|
|
184
|
+
callback?.success({ response, payload })
|
|
185
|
+
}
|
|
186
|
+
}).catch((error) =>
|
|
187
|
+
{
|
|
188
|
+
echo({ error });
|
|
189
|
+
if (typeof callback?.error === 'function')
|
|
190
|
+
{
|
|
191
|
+
callback?.error({ error, payload })
|
|
192
|
+
}
|
|
193
|
+
}).finally((response) =>
|
|
194
|
+
{
|
|
195
|
+
if (typeof callback?.final === 'function')
|
|
196
|
+
{
|
|
197
|
+
callback?.final({ response, payload })
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
}
|
|
114
201
|
}
|