@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.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -784,6 +784,9 @@ var WebPlatformAdapter = class {
|
|
|
784
784
|
size: config.recording.videoSize ?? config.browser?.viewport ?? { width: 1280, height: 720 }
|
|
785
785
|
};
|
|
786
786
|
}
|
|
787
|
+
if (config.authState?.storageStatePath) {
|
|
788
|
+
contextOptions.storageState = config.authState.storageStatePath;
|
|
789
|
+
}
|
|
787
790
|
this.context = await this.browser.newContext(contextOptions);
|
|
788
791
|
if (browserName === "chromium") {
|
|
789
792
|
await this.context.grantPermissions(["clipboard-write"]);
|
|
@@ -1397,6 +1400,9 @@ var FarmWebAdapter = class {
|
|
|
1397
1400
|
size: config.recording.videoSize ?? config.browser?.viewport ?? { width: 1280, height: 720 }
|
|
1398
1401
|
};
|
|
1399
1402
|
}
|
|
1403
|
+
if (config.authState?.storageStatePath) {
|
|
1404
|
+
contextOptions.storageState = config.authState.storageStatePath;
|
|
1405
|
+
}
|
|
1400
1406
|
this.context = await this.browser.newContext(contextOptions);
|
|
1401
1407
|
await this.context.grantPermissions(["clipboard-write"]);
|
|
1402
1408
|
this.page = await this.context.newPage();
|