sr-npm 1.7.722 → 1.7.724
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
|
@@ -29,6 +29,7 @@ async function careersMultiBoxesPageOnReady(_$w,urlParams) {
|
|
|
29
29
|
_$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices = [];
|
|
30
30
|
}
|
|
31
31
|
selectedByField.clear();
|
|
32
|
+
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.SECONDARY_SEARCH_INPUT).value='';
|
|
32
33
|
await updateJobsAndNumbersAndFilters(_$w,true);
|
|
33
34
|
}
|
|
34
35
|
});
|
|
@@ -382,6 +383,8 @@ function secondarySearch(_$w,query) {
|
|
|
382
383
|
pagination.currentPage=1;
|
|
383
384
|
handlePaginationButtons(_$w,true);
|
|
384
385
|
updateTotalJobsCountText(_$w,true);
|
|
386
|
+
console.log("_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data : ", _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data);
|
|
387
|
+
return _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data
|
|
385
388
|
}
|
|
386
389
|
function bindSearchInput(_$w) {
|
|
387
390
|
const primarySearchDebounced = debounce(() => {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const { executeApiRequest } = require('tests-utils');
|
|
2
|
+
const { clearCollections } = require('./testsUtils');
|
|
3
|
+
const { TEMPLATE_TYPE } = require('./consts');
|
|
4
|
+
|
|
5
|
+
beforeAll(async () => {
|
|
6
|
+
clearCollections();
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
it.each([
|
|
11
|
+
{ templateName: 'Internal', templateType: TEMPLATE_TYPE.INTERNAL },
|
|
12
|
+
{ templateName: 'External', templateType: TEMPLATE_TYPE.EXTERNAL },
|
|
13
|
+
])('should successfully mark template as $templateName', async ({ templateName,templateType }) => {
|
|
14
|
+
const requestBody = `markTemplateAs${templateName}();`;
|
|
15
|
+
const response = await executeApiRequest(requestBody);
|
|
16
|
+
expect(response.status).toBe(200);
|
|
17
|
+
expect(response.data).toBeDefined();
|
|
18
|
+
expect(response.data.result.templateType).toBe(templateType);
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|