@zohodesk/testinglibrary 0.1.8-stb-bdd-v13 → 0.1.8-stb-bdd-v14n
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.
|
@@ -56,7 +56,7 @@ function parseFeature(featureFileContent) {
|
|
|
56
56
|
scenarioSteps.examples = false;
|
|
57
57
|
}
|
|
58
58
|
scenarioSteps.scenarioTags = (_$scenario$scenario3 = $scenario.scenario) === null || _$scenario$scenario3 === void 0 ? void 0 : _$scenario$scenario3.tags.map(tag => tag.name);
|
|
59
|
-
|
|
59
|
+
scenarioSteps.steps = $scenario === null || $scenario === void 0 || (_$scenario$scenario4 = $scenario.scenario) === null || _$scenario$scenario4 === void 0 ? void 0 : _$scenario$scenario4.steps.map(step => {
|
|
60
60
|
return {
|
|
61
61
|
stepDescription: step.text,
|
|
62
62
|
keyword: step.keyword
|
|
@@ -53,11 +53,11 @@ function scenarioSnippet(scenario) {
|
|
|
53
53
|
} = extractStepArgument(step.stepDescription);
|
|
54
54
|
var pageFixtureUsed_Step = testDataMap.get(`'${convertedStep}'`) || null;
|
|
55
55
|
/** Step Implementation Check (Walk Through Approach)*/
|
|
56
|
-
if (!
|
|
56
|
+
if (!pageFixtureUsed_Step) {
|
|
57
57
|
_logger.Logger.log(_logger.Logger.FAILURE_TYPE, `${step.scenariodescription} Not Implemented`);
|
|
58
58
|
process.exit(0);
|
|
59
59
|
}
|
|
60
|
-
currentInputs.push(
|
|
60
|
+
currentInputs.push(pageFixtureUsed_Step);
|
|
61
61
|
currentStep.push((0, _stepsnippets.testStep)(step.keyword, convertedStep, pageFixtureUsed_Step, currentArgument.join(','), step.stepDescription));
|
|
62
62
|
return;
|
|
63
63
|
});
|
|
@@ -67,7 +67,7 @@ function scenarioSnippet(scenario) {
|
|
|
67
67
|
function pageFixtureFilter(pageFixturesArray) {
|
|
68
68
|
var pageInputs = [];
|
|
69
69
|
pageFixturesArray.forEach(pages => {
|
|
70
|
-
|
|
70
|
+
pageInputs = [...pageInputs, ...(0, _stringManipulation.removeAll)(pages, ['{', '}']).split(',')];
|
|
71
71
|
});
|
|
72
72
|
return (0, _stringManipulation.avoidDuplicate)(pageInputs);
|
|
73
73
|
}
|
package/npm-shrinkwrap.json
CHANGED