@dev-blinq/cucumber_client 1.0.1337-dev → 1.0.1338-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.
|
@@ -215,7 +215,7 @@ export class BVTRecorder {
|
|
|
215
215
|
this.pageSet = new Set();
|
|
216
216
|
this.lastKnownUrlPath = "";
|
|
217
217
|
// TODO: what is world?
|
|
218
|
-
this.world = { attach: () => {
|
|
218
|
+
this.world = { attach: () => {} };
|
|
219
219
|
this.shouldTakeScreenshot = true;
|
|
220
220
|
this.watcher = null;
|
|
221
221
|
}
|
|
@@ -324,7 +324,7 @@ export class BVTRecorder {
|
|
|
324
324
|
process.env.CDP_LISTEN_PORT = this.#remoteDebuggerPort;
|
|
325
325
|
|
|
326
326
|
this.stepRunner.setRemoteDebugPort(this.#remoteDebuggerPort);
|
|
327
|
-
this.world = { attach: () => {
|
|
327
|
+
this.world = { attach: () => {} };
|
|
328
328
|
|
|
329
329
|
const ai_config_file = path.join(this.projectDir, "ai_config.json");
|
|
330
330
|
let ai_config = {};
|
|
@@ -730,7 +730,7 @@ export class BVTRecorder {
|
|
|
730
730
|
}
|
|
731
731
|
async closeBrowser() {
|
|
732
732
|
delete process.env.TEMP_RUN;
|
|
733
|
-
await this.watcher.close().then(() => {
|
|
733
|
+
await this.watcher.close().then(() => {});
|
|
734
734
|
this.watcher = null;
|
|
735
735
|
this.previousIndex = null;
|
|
736
736
|
this.previousHistoryLength = null;
|
|
@@ -812,6 +812,7 @@ export class BVTRecorder {
|
|
|
812
812
|
}
|
|
813
813
|
|
|
814
814
|
async abortExecution() {
|
|
815
|
+
this.bvtContext.web.abortedExecution = true;
|
|
815
816
|
await this.stepRunner.abortExecution();
|
|
816
817
|
}
|
|
817
818
|
async dealyedRevertMode() {
|
|
@@ -821,10 +822,7 @@ export class BVTRecorder {
|
|
|
821
822
|
this.timerId = timerId;
|
|
822
823
|
}
|
|
823
824
|
async runStep({ step, parametersMap, tags, isFirstStep, listenNetwork }, options) {
|
|
824
|
-
const {
|
|
825
|
-
skipAfter = true,
|
|
826
|
-
skipBefore = !isFirstStep,
|
|
827
|
-
} = options || {};
|
|
825
|
+
const { skipAfter = true, skipBefore = !isFirstStep } = options || {};
|
|
828
826
|
const _env = {
|
|
829
827
|
TOKEN: this.TOKEN,
|
|
830
828
|
TEMP_RUN: true,
|
|
@@ -836,6 +834,7 @@ export class BVTRecorder {
|
|
|
836
834
|
|
|
837
835
|
this.bvtContext.navigate = true;
|
|
838
836
|
this.bvtContext.loadedRoutes = null;
|
|
837
|
+
this.bvtContext.web.abortedExecution = false;
|
|
839
838
|
for (const [key, value] of Object.entries(_env)) {
|
|
840
839
|
process.env[key] = value;
|
|
841
840
|
}
|