@dev-blinq/cucumber_client 1.0.1200-dev → 1.0.1202-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.
@@ -511,7 +511,7 @@ function findContext(element) {
511
511
  const textsInnerText = [];
512
512
  for (let i = 0; i < texts.length; i++) {
513
513
  const text = texts[i];
514
- textsInnerText.push(text.textContent);
514
+ textsInnerText.push(text.parentElement.textContent.trim());
515
515
  // set attribute to the text: blinq-text-${key}-${i}
516
516
  text.parentElement.setAttribute(`blinq-text-${key}-${i}`, "");
517
517
  }
@@ -311,6 +311,12 @@ class Feature {
311
311
  stepInfo.template = step.getTemplate();
312
312
  scenarioInfo.steps.push(stepInfo);
313
313
  const stepDef = stepsDefinitions.findMatchingStep(stepInfo.template);
314
+ stepInfo.implemented = stepDef ? true : false;
315
+ if (stepDef) {
316
+ stepInfo.mjsFile = stepDef.file;
317
+ stepInfo.functionName = stepDef.functionName;
318
+ stepInfo.implemented_at = stepDef.implemented_at;
319
+ }
314
320
  if (!stepDef && parseFailedFiles) {
315
321
  //Check if the stepName exists in one of the failedToParseFiles
316
322
  try {
@@ -333,12 +339,6 @@ class Feature {
333
339
  console.error(`Error while checking step ${stepInfo.template} in failed files:`, e);
334
340
  }
335
341
  }
336
- stepInfo.implemented = stepDef ? true : false;
337
- if (stepDef) {
338
- stepInfo.mjsFile = stepDef.file;
339
- stepInfo.functionName = stepDef.functionName;
340
- stepInfo.implemented_at = stepDef.implemented_at;
341
- }
342
342
  }
343
343
  document.scenarios.push(scenarioInfo);
344
344
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-blinq/cucumber_client",
3
- "version": "1.0.1200-dev",
3
+ "version": "1.0.1202-dev",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",