@zohodesk/testinglibrary 0.1.5-exp.4 → 0.1.5-exp.5
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.
|
@@ -55,6 +55,7 @@ const {
|
|
|
55
55
|
bddMode
|
|
56
56
|
} = (0, _readConfigFile.generateConfigFromFile)();
|
|
57
57
|
let base = bddMode ? _bddFramework.test : _test.test;
|
|
58
|
+
const cacheMap = new Map();
|
|
58
59
|
const test = exports.test = base.extend({
|
|
59
60
|
page: async ({
|
|
60
61
|
page
|
|
@@ -98,6 +99,11 @@ const test = exports.test = base.extend({
|
|
|
98
99
|
await context.addInitScript(() => window.localStorage.setItem('isDnBannerHide', true));
|
|
99
100
|
await use(context);
|
|
100
101
|
},
|
|
102
|
+
cacheLayer: async ({
|
|
103
|
+
context
|
|
104
|
+
}, use) => {
|
|
105
|
+
await use(cacheMap);
|
|
106
|
+
},
|
|
101
107
|
...additionalPages
|
|
102
108
|
});
|
|
103
109
|
const {
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.tagProcessor = tagProcessor;
|
|
7
7
|
function getTagsString(tags, editionTags) {
|
|
8
|
-
return tags && tags !== '' ? `${tags}
|
|
8
|
+
return tags && tags !== '' ? `${tags} and not (${editionTags})` : `not (${editionTags})`;
|
|
9
9
|
}
|
|
10
10
|
function getEdition(edition) {
|
|
11
11
|
if (edition.startsWith('<=')) {
|
|
@@ -24,16 +24,16 @@ function editionPreprocessing(editionOrder, selectedEdition) {
|
|
|
24
24
|
const index = editionOrder.findIndex(edition => edition.toLowerCase() === editionToBeSearched);
|
|
25
25
|
if (index !== -1) {
|
|
26
26
|
let resultArray;
|
|
27
|
-
if (operator === '
|
|
27
|
+
if (operator === '<=') {
|
|
28
28
|
resultArray = editionOrder.slice(index + 1);
|
|
29
|
-
} else if (operator === '<') {
|
|
30
|
-
resultArray = editionOrder.slice(0, index);
|
|
31
29
|
} else if (operator === '>=') {
|
|
30
|
+
resultArray = editionOrder.slice(0, index);
|
|
31
|
+
} else if (operator === '<') {
|
|
32
32
|
resultArray = editionOrder.slice(index);
|
|
33
|
-
} else if (operator === '
|
|
33
|
+
} else if (operator === '>') {
|
|
34
34
|
resultArray = editionOrder.slice(0, index + 1);
|
|
35
35
|
} else {
|
|
36
|
-
resultArray =
|
|
36
|
+
resultArray = editionOrder.filter((_, order) => order !== index);
|
|
37
37
|
}
|
|
38
38
|
return resultArray;
|
|
39
39
|
}
|
package/npm-shrinkwrap.json
CHANGED
package/package.json
CHANGED