@dev-blinq/cucumber_client 1.0.1398-stage → 1.0.1399-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,26 +441,30 @@ 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
|
-
|
|
449
|
+
this.recordEvent(
|
|
450
|
+
{
|
|
451
|
+
details: {
|
|
452
|
+
name: "fill",
|
|
453
|
+
text: newValue,
|
|
454
|
+
},
|
|
455
|
+
element: target,
|
|
453
456
|
},
|
|
454
|
-
|
|
455
|
-
|
|
457
|
+
target,
|
|
458
|
+
"input",
|
|
459
|
+
event
|
|
460
|
+
);
|
|
456
461
|
|
|
457
462
|
event.__bvt_recorded = true;
|
|
458
|
-
}
|
|
463
|
+
}, 20);
|
|
459
464
|
}
|
|
460
465
|
oldPreventDefault();
|
|
461
466
|
};
|
|
462
467
|
|
|
463
|
-
|
|
464
468
|
if (!this.eventUtils.shouldGenerateKeyPressFor(event)) return;
|
|
465
469
|
// if (this._actionInProgress(event)) {
|
|
466
470
|
// this._expectProgrammaticKeyUp = true;
|
|
@@ -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;
|