@dev-blinq/cucumber_client 1.0.1397-stage → 1.0.1398-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.
|
@@ -144,7 +144,7 @@ class BVTRecorder {
|
|
|
144
144
|
getAction: (e) => {
|
|
145
145
|
this.eventUtils.consumeEvent(e);
|
|
146
146
|
},
|
|
147
|
-
getInterestedElement: () => {},
|
|
147
|
+
getInterestedElement: () => { },
|
|
148
148
|
hoverOutlineStyle: "",
|
|
149
149
|
});
|
|
150
150
|
|
|
@@ -159,7 +159,7 @@ class BVTRecorder {
|
|
|
159
159
|
};
|
|
160
160
|
},
|
|
161
161
|
getAction: () => null,
|
|
162
|
-
getInterestedElement: () => {},
|
|
162
|
+
getInterestedElement: () => { },
|
|
163
163
|
hoverOutlineStyle: "",
|
|
164
164
|
});
|
|
165
165
|
|
|
@@ -174,7 +174,7 @@ class BVTRecorder {
|
|
|
174
174
|
};
|
|
175
175
|
},
|
|
176
176
|
getAction: () => null,
|
|
177
|
-
getInterestedElement: () => {},
|
|
177
|
+
getInterestedElement: () => { },
|
|
178
178
|
hoverOutlineStyle: "",
|
|
179
179
|
});
|
|
180
180
|
|
|
@@ -441,30 +441,26 @@ class BVTRecorder {
|
|
|
441
441
|
event.preventDefault = () => {
|
|
442
442
|
if (event.key.length >= 1 && !event.ctrlKey && !event.metaKey && !event.altKey) {
|
|
443
443
|
const target = this.eventUtils.getNearestInteractiveElement(this.eventUtils.deepEventTarget(event));
|
|
444
|
-
setTimeout(() => {
|
|
444
|
+
setTimeout((() => {
|
|
445
445
|
if (event.__bvt_recorded !== undefined) return;
|
|
446
446
|
const valueBefore = target.value;
|
|
447
447
|
let newValue = valueBefore;
|
|
448
448
|
|
|
449
|
-
this.recordEvent(
|
|
450
|
-
{
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
text: newValue,
|
|
454
|
-
},
|
|
455
|
-
element: target,
|
|
449
|
+
this.recordEvent({
|
|
450
|
+
details: {
|
|
451
|
+
name: "fill",
|
|
452
|
+
text: newValue,
|
|
456
453
|
},
|
|
457
|
-
target,
|
|
458
|
-
|
|
459
|
-
event
|
|
460
|
-
);
|
|
454
|
+
element: target,
|
|
455
|
+
}, target, "input", event);
|
|
461
456
|
|
|
462
457
|
event.__bvt_recorded = true;
|
|
463
|
-
}, 20)
|
|
458
|
+
}), 20)
|
|
464
459
|
}
|
|
465
460
|
oldPreventDefault();
|
|
466
461
|
};
|
|
467
462
|
|
|
463
|
+
|
|
468
464
|
if (!this.eventUtils.shouldGenerateKeyPressFor(event)) return;
|
|
469
465
|
// if (this._actionInProgress(event)) {
|
|
470
466
|
// this._expectProgrammaticKeyUp = true;
|
|
@@ -170,7 +170,7 @@ export class CodePage {
|
|
|
170
170
|
this.generateModel(fileContentNew);
|
|
171
171
|
}
|
|
172
172
|
catch (e) {
|
|
173
|
-
logger.
|
|
173
|
+
logger.error("failed to format the code");
|
|
174
174
|
logger.debug(e);
|
|
175
175
|
}
|
|
176
176
|
if (!existsSync(this.sourceFileName)) {
|
|
@@ -640,7 +640,7 @@ export class CodePage {
|
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
642
|
catch {
|
|
643
|
-
logger.
|
|
643
|
+
logger.error("failed to read locators metadata file", locatorsMetadataFileName);
|
|
644
644
|
}
|
|
645
645
|
const keys = Object.keys(locatorsMetadata);
|
|
646
646
|
keys.forEach((key) => {
|
|
@@ -650,7 +650,7 @@ export class CodePage {
|
|
|
650
650
|
writeFileSync(locatorsMetadataFileName, JSON.stringify(metadata, null, 2), "utf8");
|
|
651
651
|
}
|
|
652
652
|
catch {
|
|
653
|
-
logger.
|
|
653
|
+
logger.error("failed to write locators metadata file", locatorsMetadataFileName);
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
656
|
_getVariableStartEnd(variableName) {
|
|
@@ -507,7 +507,7 @@ export class BVTRecorder {
|
|
|
507
507
|
this.workspaceService = new PublishService(this.TOKEN);
|
|
508
508
|
this.pageSet = new Set();
|
|
509
509
|
this.lastKnownUrlPath = "";
|
|
510
|
-
this.world = { attach: () => {} };
|
|
510
|
+
this.world = { attach: () => { } };
|
|
511
511
|
this.shouldTakeScreenshot = true;
|
|
512
512
|
this.watcher = null;
|
|
513
513
|
this.networkEventsFolder = path.join(tmpdir(), "blinq_network_events");
|
|
@@ -650,7 +650,7 @@ export class BVTRecorder {
|
|
|
650
650
|
}
|
|
651
651
|
|
|
652
652
|
// this.stepRunner.setRemoteDebugPort(this.#remoteDebuggerPort);
|
|
653
|
-
this.world = { attach: () => {} };
|
|
653
|
+
this.world = { attach: () => { } };
|
|
654
654
|
|
|
655
655
|
const ai_config_file = path.join(this.projectDir, "ai_config.json");
|
|
656
656
|
let ai_config = {};
|
|
@@ -1152,7 +1152,7 @@ export class BVTRecorder {
|
|
|
1152
1152
|
}
|
|
1153
1153
|
async closeBrowser() {
|
|
1154
1154
|
delete process.env.TEMP_RUN;
|
|
1155
|
-
await this.watcher.close().then(() => {});
|
|
1155
|
+
await this.watcher.close().then(() => { });
|
|
1156
1156
|
this.watcher = null;
|
|
1157
1157
|
this.previousIndex = null;
|
|
1158
1158
|
this.previousHistoryLength = null;
|