@dev-blinq/cucumber_client 1.0.1276-stage → 1.0.1277-stage
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.
|
@@ -32,7 +32,7 @@ class PromisifiedSocketServer {
|
|
|
32
32
|
}
|
|
33
33
|
this.socket.emit("response", { id, value: response, roomId, socketId });
|
|
34
34
|
} catch (error) {
|
|
35
|
-
socketLogger.error("Error handling request", { event, input, id, roomId, socketId, error });
|
|
35
|
+
socketLogger.error("Error handling request", { event, input, id, roomId, socketId, error: error instanceof Error ? `${error.message}\n${error.stack}` : error });
|
|
36
36
|
this.socket.emit("response", {
|
|
37
37
|
id,
|
|
38
38
|
error: {
|
|
@@ -257,7 +257,7 @@ export class BVTStepRunner {
|
|
|
257
257
|
|
|
258
258
|
try {
|
|
259
259
|
this.#lastAttemptedCmdId = null;
|
|
260
|
-
let cmdIDs = (step.commands || []).map((cmd) => cmd.cmdId);
|
|
260
|
+
let cmdIDs = (step.commands || []).map((cmd) => cmd.cmdId ?? cmd.id);
|
|
261
261
|
bvtContext.web.pausedCmd = null;
|
|
262
262
|
|
|
263
263
|
// Clear the liveExecutionMap and set up new entries for this step
|
|
@@ -273,7 +273,7 @@ export class BVTStepRunner {
|
|
|
273
273
|
if (bvtContext.web) {
|
|
274
274
|
bvtContext.web.getCmdId = () => {
|
|
275
275
|
if (cmdIDs.length === 0) {
|
|
276
|
-
cmdIDs = (step.commands || []).map((cmd) => cmd.cmdId);
|
|
276
|
+
cmdIDs = (step.commands || []).map((cmd) => cmd.cmdId ?? cmd.id);
|
|
277
277
|
}
|
|
278
278
|
const cId = cmdIDs.shift();
|
|
279
279
|
this.sendExecutionStatus({
|
|
@@ -334,7 +334,7 @@ const _parameterizeLocators = (locators, replacementFromValue, replacementToValu
|
|
|
334
334
|
if (loc?.text?.includes(replacementFromValue)) {
|
|
335
335
|
loc.text = loc.text.replaceAll(replacementFromValue, replacementToValue);
|
|
336
336
|
}
|
|
337
|
-
if (loc?.climb?.includes(replacementFromValue)) {
|
|
337
|
+
if (loc?.climb && typeof loc.climb === "string" && loc.climb?.includes(replacementFromValue)) {
|
|
338
338
|
loc.climb = loc.climb.replaceAll(replacementFromValue, replacementToValue);
|
|
339
339
|
}
|
|
340
340
|
}
|
|
@@ -380,11 +380,6 @@ export const toRecordingStep = (cmd, parametersMap) => {
|
|
|
380
380
|
if (!locatorsObject) return step;
|
|
381
381
|
const isValueVariable = isVariable(cmd.value);
|
|
382
382
|
const isTextVariable = isVariable(cmd.text);
|
|
383
|
-
const allStrategyLocators = JSON.parse(JSON.stringify(cmd?.allStrategyLocators ?? null));
|
|
384
|
-
|
|
385
|
-
step.locators = locatorsObject;
|
|
386
|
-
step.allStrategyLocators = allStrategyLocators;
|
|
387
|
-
step.isLocatorsAssigned = true;
|
|
388
383
|
|
|
389
384
|
if (!isValueVariable && !isTextVariable) {
|
|
390
385
|
return step;
|
|
@@ -394,6 +389,7 @@ export const toRecordingStep = (cmd, parametersMap) => {
|
|
|
394
389
|
step.dataSource = "parameters";
|
|
395
390
|
step.dataKey = convertToIdentifier(cmd.value.slice(1, -1))
|
|
396
391
|
}
|
|
392
|
+
const allStrategyLocators = JSON.parse(JSON.stringify(cmd?.allStrategyLocators ?? null));
|
|
397
393
|
|
|
398
394
|
if (!allStrategyLocators) {
|
|
399
395
|
let locs = locatorsObject.locators;
|