@dev-blinq/cucumber_client 1.0.1616-dev → 1.0.1618-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.
@@ -332,7 +332,7 @@ export class BVTRecorder {
332
332
  this.workspaceService = new PublishService(this.TOKEN);
333
333
  this.pageSet = new Set();
334
334
  this.lastKnownUrlPath = "";
335
- this.world = { attach: () => {} };
335
+ this.world = { attach: () => { } };
336
336
  this.shouldTakeScreenshot = true;
337
337
  this.watcher = null;
338
338
  this.networkEventsFolder = path.join(tmpdir(), "blinq_network_events");
@@ -475,7 +475,7 @@ export class BVTRecorder {
475
475
  }
476
476
 
477
477
  // this.stepRunner.setRemoteDebugPort(this.#remoteDebuggerPort);
478
- this.world = { attach: () => {} };
478
+ this.world = { attach: () => { } };
479
479
 
480
480
  const ai_config_file = path.join(this.projectDir, "ai_config.json");
481
481
  let ai_config = {};
@@ -977,7 +977,7 @@ export class BVTRecorder {
977
977
  }
978
978
  async closeBrowser() {
979
979
  delete process.env.TEMP_RUN;
980
- await this.watcher.close().then(() => {});
980
+ await this.watcher.close().then(() => { });
981
981
  this.watcher = null;
982
982
  this.previousIndex = null;
983
983
  this.previousHistoryLength = null;
@@ -1084,8 +1084,11 @@ export class BVTRecorder {
1084
1084
  REPORT_FOLDER: this.bvtContext.reportFolder,
1085
1085
  BLINQ_ENV: this.envName,
1086
1086
  DEBUG: "blinq:route",
1087
- BVT_TEMP_SNAPSHOTS_FOLDER: step.isImplemented ? path.join(this.tempSnapshotsFolder, env) : undefined,
1087
+ // BVT_TEMP_SNAPSHOTS_FOLDER: step.isImplemented ? path.join(this.tempSnapshotsFolder, env) : undefined,
1088
1088
  };
1089
+ if (!step.isImplemented) {
1090
+ _env.BVT_TEMP_SNAPSHOTS_FOLDER = path.join(this.tempSnapshotsFolder, env);
1091
+ }
1089
1092
 
1090
1093
  this.bvtContext.navigate = true;
1091
1094
  this.bvtContext.loadedRoutes = null;
@@ -1142,7 +1145,7 @@ export class BVTRecorder {
1142
1145
  branch,
1143
1146
  isEditing,
1144
1147
  projectId: path.basename(this.projectDir),
1145
- env,
1148
+ env: env ?? this.envName,
1146
1149
  });
1147
1150
  if (res.success) {
1148
1151
  await this.cleanup({ tags: scenario.tags });
@@ -1571,7 +1574,7 @@ export class BVTRecorder {
1571
1574
  await page
1572
1575
  .context()
1573
1576
  .grantPermissions(["clipboard-read", "clipboard-write"])
1574
- .catch(() => {});
1577
+ .catch(() => { });
1575
1578
  await page.evaluate(async (clipboardPayload) => {
1576
1579
  const toArrayBuffer = (base64) => {
1577
1580
  if (!base64) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-blinq/cucumber_client",
3
- "version": "1.0.1616-dev",
3
+ "version": "1.0.1618-dev",
4
4
  "description": " ",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",