Skip to content

Commit 1e23081

Browse files
Merge pull request #388 from LambdaTest/stage
Release 4.1.36
2 parents 57204b3 + cd5e936 commit 1e23081

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
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/processSnapshot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ export default async function processSnapshot(snapshot: Snapshot, ctx: Context):
645645
if (ctx.config.cliEnableJavaScript && fullPage) await page.evaluate(scrollToBottomAndBackToTop, { frequency: 100, timing: ctx.config.scrollTime });
646646

647647
try {
648-
await page.waitForLoadState('networkidle', { timeout: 5000 });
648+
await page.waitForLoadState('networkidle', { timeout: 15000 });
649649
ctx.log.debug('Network idle 500ms');
650650
} catch (error) {
651651
ctx.log.debug(`Network idle failed due to ${error}`);

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)