@dev-blinq/cucumber_client 1.0.1238-dev → 1.0.1240-dev
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.
|
@@ -577,7 +577,7 @@ const _generateCodeFromCommand = (step, elements, userData) => {
|
|
|
577
577
|
}
|
|
578
578
|
case Types.VERIFY_PROPERTY: {
|
|
579
579
|
line = `await context.web.verifyProperty(elements["${elementIdentifier}"], `;
|
|
580
|
-
input =
|
|
580
|
+
input = "_param_0";
|
|
581
581
|
if (step.dataSource === "userData" || step.dataSource === "parameters") {
|
|
582
582
|
input = "_" + step.dataKey;
|
|
583
583
|
}
|
|
@@ -236,13 +236,17 @@ export const getImplementedSteps = async (projectDir) => {
|
|
|
236
236
|
for (const tag of scenario.tags) {
|
|
237
237
|
delete tag.location;
|
|
238
238
|
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
239
|
+
for (const scenario of scenarios) {
|
|
240
|
+
for (const step of scenario.steps) {
|
|
241
|
+
if (step.templateIndex === undefined) {
|
|
242
|
+
const cleanStepName = stepsDefinitions._stepNameToTemplate(step.text);
|
|
243
|
+
const index = implementedSteps.findIndex((istep) => {
|
|
244
|
+
return cleanStepName === istep.pattern;
|
|
245
|
+
});
|
|
246
|
+
step.templateIndex = index;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
246
250
|
}
|
|
247
251
|
if (foundErrors.length > 0) {
|
|
248
252
|
console.log("foundErrors", foundErrors);
|