Skip to content

Commit 05837d1

Browse files
Merge pull request #387 from shrinishLT/DOT-6482
add support of ignoreHTTPSErrors for capture-cmd
2 parents d756b06 + 0106225 commit 05837d1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lambdatest/smartui-cli",
3-
"version": "4.1.35",
3+
"version": "4.1.36",
44
"description": "A command line interface (CLI) to run SmartUI tests on LambdaTest",
55
"files": [
66
"dist/**/*"

src/lib/screenshot.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ async function captureScreenshotsForConfig(
2525
ctx.log.debug(`url: ${url} pageOptions: ${JSON.stringify(pageOptions)}`);
2626
let ssId = name.toLowerCase().replace(/\s/g, '_');
2727
let context: BrowserContext;
28-
let contextOptions: Record<string, any> = {};
28+
let contextOptions: Record<string, any> = {
29+
ignoreHTTPSErrors: ctx.config.ignoreHTTPSErrors
30+
};
2931
let page: Page;
3032
if (browserName == constants.CHROME) contextOptions.userAgent = constants.CHROME_USER_AGENT;
3133
else if (browserName == constants.FIREFOX) contextOptions.userAgent = constants.FIREFOX_USER_AGENT;

0 commit comments

Comments
 (0)