@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
- line = `await context.web.verifyProperty(elements["${elementIdentifier}"], `;
580
- input = `"${escapeNonPrintables(step.parameters[1].replaceAll('"', '\\"'))}"`;
581
- if (step.dataSource === "userData" || step.dataSource === "parameters") {
582
- input = "_" + step.dataKey;
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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-blinq/cucumber_client",
3
- "version": "1.0.1239-dev",
3
+ "version": "1.0.1241-dev",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",