@zohodesk/testinglibrary 2.9.3 → 2.9.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.
- package/.gitlab-ci.yml +6 -19
- package/build/bdd-framework/cucumber/formatter/EventDataCollector.js +1 -1
- package/build/bdd-framework/reporter/cucumber/json.js +1 -1
- package/build/bdd-framework/reporter/cucumber/messagesBuilder/Meta.js +1 -1
- package/build/bdd-framework/reporter/cucumber/messagesBuilder/TestStepAttachments.js +1 -1
- package/build/bdd-framework/reporter/cucumber/messagesBuilder/TestStepRun.js +1 -1
- package/build/core/playwright/custom-commands.js +1 -1
- package/build/core/playwright/helpers/fileMutex.js +11 -13
- package/build/core/playwright/tagProcessor.js +18 -28
- package/npm-shrinkwrap.json +1455 -1298
- package/package.json +1 -1
- package/unit_reports/unit-report.html +260 -0
- package/nobdd/README.md +0 -1
- package/nobdd/package.json +0 -17
- package/nobdd/src/App.js +0 -7
- package/nobdd/uat/conf/default/actors/editions/enterprise.json +0 -24
- package/nobdd/uat/conf/default/actors/editions/index.js +0 -4
- package/nobdd/uat/conf/default/actors/index.js +0 -2
- package/nobdd/uat/conf/default/settings.json +0 -6
- package/nobdd/uat/conf/nobdd/uat.config.js +0 -36
- package/nobdd/uat/env-config.json +0 -20
- package/nobdd/uat/fixtures/auth.setup.js +0 -44
- package/nobdd/uat/fixtures/setup.teardown.js +0 -33
- package/nobdd/uat/modules/nobdd/steps/VerifyNoBDD.feature.spec.js +0 -16
- package/nobdd/uat/shared/commands/_index-custom-fixtures.js +0 -9
- package/nobdd/uat/shared/commands/i18n.js +0 -25
- package/nobdd/uat/shared/commands/unauthenticatedPage.js +0 -8
- package/nobdd/uat/shared/index.js +0 -7
- package/nobdd/uat/shared/onboardings/onboardingUpdate.js +0 -44
- package/nobdd/uat/shared/url-helpers/getUrlOrigin.js +0 -6
- package/nobdd/uat.config.js +0 -37
package/.gitlab-ci.yml
CHANGED
|
@@ -45,9 +45,7 @@ uat-auth:
|
|
|
45
45
|
- npm install $(npm pack ../../testing-framework | tail -1)
|
|
46
46
|
- output=$(npm run uatauth)
|
|
47
47
|
- echo "$output"
|
|
48
|
-
-
|
|
49
|
-
- exit 1
|
|
50
|
-
- fi
|
|
48
|
+
- node ../ValidateUATReport.js examples
|
|
51
49
|
|
|
52
50
|
artifacts:
|
|
53
51
|
when: always
|
|
@@ -61,9 +59,7 @@ uat-noauth:
|
|
|
61
59
|
- npm install $(npm pack ../../testing-framework | tail -1)
|
|
62
60
|
- output=$(npm run uatnoauth)
|
|
63
61
|
- echo "$output"
|
|
64
|
-
-
|
|
65
|
-
- exit 1
|
|
66
|
-
- fi
|
|
62
|
+
- node ../ValidateUATReport.js examples
|
|
67
63
|
|
|
68
64
|
artifacts:
|
|
69
65
|
when: always
|
|
@@ -77,9 +73,7 @@ uat-profile:
|
|
|
77
73
|
- npm install $(npm pack ../../testing-framework | tail -1)
|
|
78
74
|
- output=$(npm run uatprofile)
|
|
79
75
|
- echo "$output"
|
|
80
|
-
-
|
|
81
|
-
- exit 1
|
|
82
|
-
- fi
|
|
76
|
+
- node ../ValidateUATReport.js examples
|
|
83
77
|
|
|
84
78
|
artifacts:
|
|
85
79
|
when: always
|
|
@@ -89,17 +83,12 @@ uat-profile:
|
|
|
89
83
|
|
|
90
84
|
uat-unauth:
|
|
91
85
|
stage: uat
|
|
92
|
-
image: repository.desk.csez.zohocorpin.com/base-image/testing-framework-gitlab-runne-base:v2
|
|
93
86
|
script:
|
|
94
|
-
- npm install
|
|
95
|
-
- npm run build
|
|
96
87
|
- cd examples
|
|
97
88
|
- npm install $(npm pack ../../testing-framework | tail -1)
|
|
98
89
|
- output=$(npm run uatunauth)
|
|
99
90
|
- echo "$output"
|
|
100
|
-
-
|
|
101
|
-
- exit 1
|
|
102
|
-
- fi
|
|
91
|
+
- node ../ValidateUATReport.js examples
|
|
103
92
|
|
|
104
93
|
|
|
105
94
|
artifacts:
|
|
@@ -112,11 +101,9 @@ uat-nobdd:
|
|
|
112
101
|
script:
|
|
113
102
|
- cd nobdd
|
|
114
103
|
- npm install $(npm pack ../../testing-framework | tail -1)
|
|
115
|
-
- output=$(npm run uatnobdd)
|
|
104
|
+
- output=$(npm run uatnobdd -- --headless)
|
|
116
105
|
- echo "$output"
|
|
117
|
-
-
|
|
118
|
-
- exit 1
|
|
119
|
-
- fi
|
|
106
|
+
- node ../ValidateUATReport.js nobdd
|
|
120
107
|
|
|
121
108
|
|
|
122
109
|
artifacts:
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
var messages = _interopRequireWildcard(require("@cucumber/messages"));
|
|
8
8
|
var _valueChecker = require("../valueChecker");
|
|
9
9
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
10
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
10
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
11
|
/**
|
|
12
12
|
* Groups Cucumber messages for easier access.
|
|
13
13
|
* Based on Cucumber, with some changes due to strictNullChecks errors.
|
|
@@ -16,7 +16,7 @@ var _locationHelpers = require("../../cucumber/formatter/locationHelpers");
|
|
|
16
16
|
var _GherkinDocument = require("./messagesBuilder/GherkinDocument");
|
|
17
17
|
var _Projects = require("./messagesBuilder/Projects");
|
|
18
18
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
20
|
/**
|
|
21
21
|
* Cucumber json reporter.
|
|
22
22
|
* Based on: https://github.com/cucumber/cucumber-js/blob/main/src/formatter/json_formatter.ts
|
|
@@ -9,7 +9,7 @@ var _os = _interopRequireDefault(require("os"));
|
|
|
9
9
|
var messages = _interopRequireWildcard(require("@cucumber/messages"));
|
|
10
10
|
var _utils = require("../../../utils");
|
|
11
11
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
13
|
/**
|
|
14
14
|
* Builds meta message.
|
|
15
15
|
* See: https://github.com/cucumber/cucumber-js/blob/main/src/cli/helpers.ts#L100
|
|
@@ -9,7 +9,7 @@ var _fs = _interopRequireDefault(require("fs"));
|
|
|
9
9
|
var messages = _interopRequireWildcard(require("@cucumber/messages"));
|
|
10
10
|
var _path = _interopRequireDefault(require("path"));
|
|
11
11
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
13
|
/**
|
|
14
14
|
* Class for getting attachment messages for a particular step.
|
|
15
15
|
*/
|
|
@@ -9,7 +9,7 @@ var _stripAnsiEscapes = require("../../../utils/stripAnsiEscapes");
|
|
|
9
9
|
var _timing = require("./timing");
|
|
10
10
|
var _TestStepAttachments = require("./TestStepAttachments");
|
|
11
11
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
13
|
class TestStepRun {
|
|
14
14
|
testCaseRun;
|
|
15
15
|
testStep;
|
|
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.CUSTOM_COMMANDS = void 0;
|
|
7
|
-
const CUSTOM_COMMANDS = exports.CUSTOM_COMMANDS = ['mode', 'tags', 'edition', 'browsers', 'filePath'];
|
|
7
|
+
const CUSTOM_COMMANDS = exports.CUSTOM_COMMANDS = ['mode', 'tags', 'edition', 'browsers', 'filePath', 'headless'];
|
|
@@ -8,44 +8,42 @@ exports.default = void 0;
|
|
|
8
8
|
var _path = _interopRequireDefault(require("path"));
|
|
9
9
|
var _properLockfile = _interopRequireDefault(require("proper-lockfile"));
|
|
10
10
|
var _fs = require("fs");
|
|
11
|
-
function _classPrivateMethodInitSpec(
|
|
12
|
-
function _checkPrivateRedeclaration(
|
|
13
|
-
function
|
|
14
|
-
var
|
|
15
|
-
var _createDirectoryIfNotExist = /*#__PURE__*/new WeakSet();
|
|
11
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
12
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
13
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
|
14
|
+
var _FileMutex_brand = /*#__PURE__*/new WeakSet();
|
|
16
15
|
class FileMutex {
|
|
17
16
|
constructor(directory, lockFileName, options = {}) {
|
|
18
|
-
_classPrivateMethodInitSpec(this,
|
|
19
|
-
_classPrivateMethodInitSpec(this, _getLockFilePath);
|
|
17
|
+
_classPrivateMethodInitSpec(this, _FileMutex_brand);
|
|
20
18
|
this.directory = directory;
|
|
21
19
|
this.lockFileName = lockFileName + ".lock";
|
|
22
20
|
this.options = options;
|
|
23
21
|
}
|
|
24
22
|
async acquire() {
|
|
25
|
-
|
|
26
|
-
const lockFilePath =
|
|
23
|
+
_assertClassBrand(_FileMutex_brand, this, _createDirectoryIfNotExist).call(this);
|
|
24
|
+
const lockFilePath = _assertClassBrand(_FileMutex_brand, this, _getLockFilePath).call(this);
|
|
27
25
|
try {
|
|
28
26
|
if (!(0, _fs.existsSync)(lockFilePath)) {
|
|
29
27
|
console.log(`[DEBUG] Creating missing lock file:`, this.lockFileName);
|
|
30
28
|
(0, _fs.writeFileSync)(lockFilePath, 'locked');
|
|
31
29
|
}
|
|
32
|
-
await _properLockfile.default.lock(
|
|
30
|
+
await _properLockfile.default.lock(lockFilePath, this.options);
|
|
33
31
|
} catch (err) {
|
|
34
32
|
throw new Error(`Failed to acquire lock after ${this.options.retries.retries} attempts: ${err.message}`);
|
|
35
33
|
}
|
|
36
34
|
}
|
|
37
35
|
async release() {
|
|
38
36
|
try {
|
|
39
|
-
await _properLockfile.default.unlock(
|
|
37
|
+
await _properLockfile.default.unlock(_assertClassBrand(_FileMutex_brand, this, _getLockFilePath).call(this));
|
|
40
38
|
} catch (err) {
|
|
41
39
|
throw new Error(`Failed to release lock: ${err.message}`);
|
|
42
40
|
}
|
|
43
41
|
}
|
|
44
42
|
}
|
|
45
|
-
function
|
|
43
|
+
function _getLockFilePath() {
|
|
46
44
|
return _path.default.resolve(_path.default.join(this.directory, this.lockFileName));
|
|
47
45
|
}
|
|
48
|
-
function
|
|
46
|
+
function _createDirectoryIfNotExist() {
|
|
49
47
|
if (!(0, _fs.existsSync)(this.directory)) {
|
|
50
48
|
(0, _fs.mkdirSync)(this.directory, {
|
|
51
49
|
recursive: true
|
|
@@ -1,23 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _logger = require("../../utils/logger");
|
|
4
|
-
function _classPrivateMethodInitSpec(
|
|
5
|
-
function _checkPrivateRedeclaration(
|
|
6
|
-
function
|
|
7
|
-
var
|
|
8
|
-
var _parseEdition = /*#__PURE__*/new WeakSet();
|
|
9
|
-
var _processSingleEdition = /*#__PURE__*/new WeakSet();
|
|
10
|
-
var _processMultipleEditions = /*#__PURE__*/new WeakSet();
|
|
11
|
-
var _getEditionArgs = /*#__PURE__*/new WeakSet();
|
|
12
|
-
var _buildEditionTags = /*#__PURE__*/new WeakSet();
|
|
4
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
5
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
6
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
|
7
|
+
var _TagProcessor_brand = /*#__PURE__*/new WeakSet();
|
|
13
8
|
class TagProcessor {
|
|
14
9
|
constructor(editionOrder) {
|
|
15
|
-
_classPrivateMethodInitSpec(this,
|
|
16
|
-
_classPrivateMethodInitSpec(this, _getEditionArgs);
|
|
17
|
-
_classPrivateMethodInitSpec(this, _processMultipleEditions);
|
|
18
|
-
_classPrivateMethodInitSpec(this, _processSingleEdition);
|
|
19
|
-
_classPrivateMethodInitSpec(this, _parseEdition);
|
|
20
|
-
_classPrivateMethodInitSpec(this, _buildTagsString);
|
|
10
|
+
_classPrivateMethodInitSpec(this, _TagProcessor_brand);
|
|
21
11
|
this.editionOrder = editionOrder;
|
|
22
12
|
}
|
|
23
13
|
processTags(userArgs) {
|
|
@@ -25,36 +15,36 @@ class TagProcessor {
|
|
|
25
15
|
const edition = userArgs['edition'] || null;
|
|
26
16
|
if (!edition) return tagArgs;
|
|
27
17
|
const editionsArray = edition.split(',');
|
|
28
|
-
const editionTags = editionsArray.length === 1 ?
|
|
18
|
+
const editionTags = editionsArray.length === 1 ? _assertClassBrand(_TagProcessor_brand, this, _processSingleEdition).call(this, editionsArray[0], tagArgs) : _assertClassBrand(_TagProcessor_brand, this, _processMultipleEditions).call(this, editionsArray, tagArgs);
|
|
29
19
|
return editionTags;
|
|
30
20
|
}
|
|
31
21
|
}
|
|
32
|
-
function
|
|
22
|
+
function _buildTagsString(tags, editionTags) {
|
|
33
23
|
return tags && tags !== '' ? `${tags} and not (${editionTags})` : `not (${editionTags})`;
|
|
34
24
|
}
|
|
35
|
-
function
|
|
25
|
+
function _parseEdition(edition) {
|
|
36
26
|
if (edition.startsWith('<=')) return ['<=', edition.slice(2)];
|
|
37
27
|
if (edition.startsWith('>=')) return ['>=', edition.slice(2)];
|
|
38
28
|
if (edition.startsWith('<')) return ['<', edition.slice(1)];
|
|
39
29
|
if (edition.startsWith('>')) return ['>', edition.slice(1)];
|
|
40
30
|
return [null, edition];
|
|
41
31
|
}
|
|
42
|
-
function
|
|
43
|
-
const editionArgs =
|
|
32
|
+
function _processSingleEdition(selectedEdition, tagArgs) {
|
|
33
|
+
const editionArgs = _assertClassBrand(_TagProcessor_brand, this, _getEditionArgs).call(this, selectedEdition);
|
|
44
34
|
if (editionArgs && editionArgs.length > 0) {
|
|
45
|
-
const editionTags =
|
|
46
|
-
return
|
|
35
|
+
const editionTags = _assertClassBrand(_TagProcessor_brand, this, _buildEditionTags).call(this, editionArgs, 'or');
|
|
36
|
+
return _assertClassBrand(_TagProcessor_brand, this, _buildTagsString).call(this, tagArgs, editionTags);
|
|
47
37
|
}
|
|
48
38
|
_logger.Logger.log(_logger.Logger.INFO_TYPE, `No matching editions for ${selectedEdition} found. Running with default edition`);
|
|
49
39
|
return tagArgs;
|
|
50
40
|
}
|
|
51
|
-
function
|
|
41
|
+
function _processMultipleEditions(editionsArray, tagArgs) {
|
|
52
42
|
const filteredEditions = this.editionOrder.filter(edition => !editionsArray.includes(edition));
|
|
53
|
-
const editionTags =
|
|
54
|
-
return
|
|
43
|
+
const editionTags = _assertClassBrand(_TagProcessor_brand, this, _buildEditionTags).call(this, filteredEditions, 'or');
|
|
44
|
+
return _assertClassBrand(_TagProcessor_brand, this, _buildTagsString).call(this, tagArgs, editionTags);
|
|
55
45
|
}
|
|
56
|
-
function
|
|
57
|
-
const [operator, editionValue] =
|
|
46
|
+
function _getEditionArgs(selectedEdition) {
|
|
47
|
+
const [operator, editionValue] = _assertClassBrand(_TagProcessor_brand, this, _parseEdition).call(this, selectedEdition.toLowerCase());
|
|
58
48
|
const index = this.editionOrder.findIndex(edition => edition.toLowerCase() === editionValue);
|
|
59
49
|
if (index === -1) {
|
|
60
50
|
_logger.Logger.log(_logger.Logger.INFO_TYPE, `No matching editions for ${selectedEdition} found. Running with default edition`);
|
|
@@ -73,7 +63,7 @@ function _getEditionArgs2(selectedEdition) {
|
|
|
73
63
|
return this.editionOrder.filter((_, i) => i !== index);
|
|
74
64
|
}
|
|
75
65
|
}
|
|
76
|
-
function
|
|
66
|
+
function _buildEditionTags(editionArgs, operator = 'or') {
|
|
77
67
|
return editionArgs.map(edition => `@edition_${edition}`).join(` ${operator} `);
|
|
78
68
|
}
|
|
79
69
|
module.exports = TagProcessor;
|