@dev-blinq/cucumber_client 1.0.1239-dev → 1.0.1241-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.
|
@@ -576,13 +576,16 @@ const _generateCodeFromCommand = (step, elements, userData) => {
|
|
|
576
576
|
break;
|
|
577
577
|
}
|
|
578
578
|
case Types.VERIFY_PROPERTY: {
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
input = "
|
|
579
|
+
if (!codeLines) {
|
|
580
|
+
// Only execute if codeLine is empty/undefined
|
|
581
|
+
line = `await context.web.verifyProperty(elements["${elementIdentifier}"], `;
|
|
582
|
+
input = "_param_0";
|
|
583
|
+
if (step.dataSource === "userData" || step.dataSource === "parameters") {
|
|
584
|
+
input = "_" + step.dataKey;
|
|
585
|
+
}
|
|
586
|
+
line += `"${step.parameters[0]}", ${input}, _params, null, this);`;
|
|
587
|
+
codeLines.push(line);
|
|
583
588
|
}
|
|
584
|
-
line += `"${step.parameters[0]}", ${input}, _params, null, this);`;
|
|
585
|
-
codeLines.push(line);
|
|
586
589
|
break;
|
|
587
590
|
}
|
|
588
591
|
case Types.SET_INPUT_FILES: {
|