Skip to content

Commit b30928e

Browse files
committed
fix load event
1 parent 037d873 commit b30928e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/screenshot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ async function captureScreenshotsForConfig(
1414
browserName: string,
1515
renderViewports: Array<Record<string,any>>
1616
): Promise<void> {
17-
let pageOptions = { waitUntil: process.env.SMARTUI_PAGE_WAIT_UNTIL_EVENT || 'domcontentloaded', timeout: ctx.config.waitForPageRender || constants.DEFAULT_PAGE_LOAD_TIMEOUT };
17+
let pageOptions = { waitUntil: process.env.SMARTUI_PAGE_WAIT_UNTIL_EVENT || 'load', timeout: ctx.config.waitForPageRender || constants.DEFAULT_PAGE_LOAD_TIMEOUT };
1818
let ssId = name.toLowerCase().replace(/\s/g, '_');
1919
let context: BrowserContext;
2020
let contextOptions: Record<string, any> = {};

0 commit comments

Comments
 (0)