@dev-blinq/cucumber_client 1.0.1244-dev → 1.0.1245-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.
@@ -772,7 +772,14 @@ export class BVTRecorder {
772
772
  };
773
773
  }
774
774
  async getStepsAndCommandsForScenario({ name, featureName }) {
775
- return this.scenariosStepsMap.get(name) || [];
775
+ const steps = this.scenariosStepsMap.get(name) || [];
776
+ for (const step of steps) {
777
+ if (step.isImplemented) {
778
+ step.commands = this.getCommandsForImplementedStep({ stepName: step.text });
779
+ } else {
780
+ step.commands = [];
781
+ }
782
+ }
776
783
  // return getStepsAndCommandsForScenario({
777
784
  // name,
778
785
  // featureName,
@@ -236,17 +236,17 @@ export const getImplementedSteps = async (projectDir) => {
236
236
  for (const tag of scenario.tags) {
237
237
  delete tag.location;
238
238
  }
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
- }
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
+ // }
250
250
  }
251
251
  if (foundErrors.length > 0) {
252
252
  console.log("foundErrors", foundErrors);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-blinq/cucumber_client",
3
- "version": "1.0.1244-dev",
3
+ "version": "1.0.1245-dev",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",