@dev-blinq/cucumber_client 1.0.1642-dev → 1.0.1644-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.
|
@@ -36,6 +36,19 @@ class StepsDefinitions {
|
|
|
36
36
|
// }
|
|
37
37
|
// });
|
|
38
38
|
const { expressions, methods } = codePage;
|
|
39
|
+
|
|
40
|
+
if (codePage.fileContent.includes('from "./utils.mjs"')) {
|
|
41
|
+
const filePath = path.join(
|
|
42
|
+
this.baseFolder,
|
|
43
|
+
this.isTemp ? (process.env.tempFeaturesFolderPath ?? "__temp_features") : "features",
|
|
44
|
+
"step_definitions",
|
|
45
|
+
"utils.mjs"
|
|
46
|
+
);
|
|
47
|
+
const utilsCodePage = new CodePage(filePath);
|
|
48
|
+
utilsCodePage.generateModel();
|
|
49
|
+
methods.push(...utilsCodePage.methods);
|
|
50
|
+
}
|
|
51
|
+
|
|
39
52
|
for (let i = 0; i < expressions.length; i++) {
|
|
40
53
|
const expression = expressions[i];
|
|
41
54
|
const pattern = expression.pattern;
|
|
@@ -621,13 +621,11 @@ export async function saveRecording({ step, cucumberStep, codePage, projectDir,
|
|
|
621
621
|
stepsDefinitions
|
|
622
622
|
);
|
|
623
623
|
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
});
|
|
630
|
-
}
|
|
624
|
+
stepsDefinitions.addStep({
|
|
625
|
+
name: step.text,
|
|
626
|
+
file: result.codePage.sourceFileName,
|
|
627
|
+
source: "recorder",
|
|
628
|
+
});
|
|
631
629
|
|
|
632
630
|
cucumberStep.methodName = result.methodName;
|
|
633
631
|
return result.codePage;
|
|
@@ -676,13 +674,11 @@ export async function saveRecording({ step, cucumberStep, codePage, projectDir,
|
|
|
676
674
|
step.finalTimeout
|
|
677
675
|
);
|
|
678
676
|
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
});
|
|
685
|
-
}
|
|
677
|
+
stepsDefinitions.addStep({
|
|
678
|
+
name: step.text,
|
|
679
|
+
file: codePage.sourceFileName,
|
|
680
|
+
source: "recorder",
|
|
681
|
+
});
|
|
686
682
|
|
|
687
683
|
codePage.removeUnusedElements();
|
|
688
684
|
codePage.mergeSimilarElements();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev-blinq/cucumber_client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1644-dev",
|
|
4
4
|
"description": " ",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"types": "bin/index.d.ts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@cucumber/tag-expressions": "^6.1.1",
|
|
40
40
|
"@dev-blinq/cucumber-js": "1.0.210-dev",
|
|
41
41
|
"@faker-js/faker": "^8.4.1",
|
|
42
|
-
"automation_model": "1.0.
|
|
42
|
+
"automation_model": "1.0.898-dev",
|
|
43
43
|
"axios": "^1.7.4",
|
|
44
44
|
"chokidar": "^3.6.0",
|
|
45
45
|
"create-require": "^1.1.1",
|