@dev-blinq/cucumber_client 1.0.1345-dev → 1.0.1347-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.
|
@@ -735,13 +735,7 @@ const generateCode = (recording, codePage, userData, projectDir, methodName) =>
|
|
|
735
735
|
// codeLines.push(...generateReportCommand("start", recordingStep.cmdId));
|
|
736
736
|
// }
|
|
737
737
|
const result = _generateCodeFromCommand(recordingStep, elements, userData);
|
|
738
|
-
|
|
739
|
-
// Add try catch block to the generated code, should attach commandId to world object
|
|
740
|
-
result.codeLines.unshift(`try {`);
|
|
741
|
-
result.codeLines.push(
|
|
742
|
-
`} catch (err) { throw new Error("Error in command ${recordingStep.cmdId}: " + err.message); }`
|
|
743
|
-
);
|
|
744
|
-
}
|
|
738
|
+
|
|
745
739
|
codeLines.push(...result.codeLines);
|
|
746
740
|
// if (process.env.TEMP_RUN === "true") {
|
|
747
741
|
// codeLines.push(...generateReportCommand("end", recordingStep.cmdId));
|
|
@@ -87,8 +87,8 @@ export function parseRouteFiles(projectDir, step) {
|
|
|
87
87
|
const filters = item.filters || {};
|
|
88
88
|
const queryParams = filters?.queryParams || {};
|
|
89
89
|
const queryParamsArray = Object.keys(queryParams).map((key) => ({
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
key: key,
|
|
91
|
+
value: queryParams[key],
|
|
92
92
|
}));
|
|
93
93
|
filters.queryParams = queryParamsArray || [];
|
|
94
94
|
});
|
|
@@ -448,7 +448,7 @@ export function saveRoutes({ step, folderPath }) {
|
|
|
448
448
|
const oldFilters = routeItem.filters;
|
|
449
449
|
const queryParamsObject = {};
|
|
450
450
|
oldFilters.queryParams.forEach((queryParam) => {
|
|
451
|
-
queryParamsObject[queryParam.
|
|
451
|
+
queryParamsObject[queryParam.key] = queryParam.value;
|
|
452
452
|
});
|
|
453
453
|
const newFilters = { path: oldFilters.path, method: oldFilters.method, queryParams: queryParamsObject };
|
|
454
454
|
return {
|
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.1347-dev",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"types": "bin/index.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@cucumber/tag-expressions": "^6.1.1",
|
|
33
33
|
"@dev-blinq/cucumber-js": "1.0.179-dev",
|
|
34
34
|
"@faker-js/faker": "^8.1.0",
|
|
35
|
-
"automation_model": "1.0.
|
|
35
|
+
"automation_model": "1.0.793-dev",
|
|
36
36
|
"axios": "^1.7.4",
|
|
37
37
|
"chokidar": "^3.6.0",
|
|
38
38
|
"create-require": "^1.1.1",
|