@dev-blinq/cucumber_client 1.0.1336-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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-blinq/cucumber_client",
3
- "version": "1.0.1336-dev",
3
+ "version": "1.0.1338-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.178-dev",
34
34
  "@faker-js/faker": "^8.1.0",
35
- "automation_model": "1.0.785-dev",
35
+ "automation_model": "1.0.786-dev",
36
36
  "axios": "^1.7.4",
37
37
  "chokidar": "^3.6.0",
38
38
  "create-require": "^1.1.1",