@vostride/agent-qa-web 0.1.14 → 0.1.16

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.
package/dist/index.js CHANGED
@@ -739,6 +739,9 @@ var WebPlatformAdapter = class {
739
739
  size: config.recording.videoSize ?? config.browser?.viewport ?? { width: 1280, height: 720 }
740
740
  };
741
741
  }
742
+ if (config.authState?.storageStatePath) {
743
+ contextOptions.storageState = config.authState.storageStatePath;
744
+ }
742
745
  this.context = await this.browser.newContext(contextOptions);
743
746
  if (browserName === "chromium") {
744
747
  await this.context.grantPermissions(["clipboard-write"]);
@@ -1352,6 +1355,9 @@ var FarmWebAdapter = class {
1352
1355
  size: config.recording.videoSize ?? config.browser?.viewport ?? { width: 1280, height: 720 }
1353
1356
  };
1354
1357
  }
1358
+ if (config.authState?.storageStatePath) {
1359
+ contextOptions.storageState = config.authState.storageStatePath;
1360
+ }
1355
1361
  this.context = await this.browser.newContext(contextOptions);
1356
1362
  await this.context.grantPermissions(["clipboard-write"]);
1357
1363
  this.page = await this.context.newPage();