Skip to content

Commit db20f46

Browse files
authored
Merge pull request #29 from pinanks/DOT-2155
Fix full page issue with capture command
2 parents 0e4639a + e39d861 commit db20f46

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
@@ -54,7 +54,7 @@ export async function captureScreenshots(ctx: Context, screenshots: WebStaticCon
5454
let ssName = `${browserName}-${width}x${height}-${screenshotId}.png`
5555
let ssPath = `screenshots/${screenshotId}/${ssName}.png`
5656
await page.setViewportSize({ width, height})
57-
await page.screenshot({ path: ssPath, fullPage: true });
57+
await page.screenshot({ path: ssPath });
5858

5959
let completed = (i == (totalBrowsers-1) && j == (totalScreenshots-1) && k == (totalViewports-1)) ? true : false;
6060
browserName = browserName === BROWSER_SAFARI ? PW_WEBKIT : browserName;

0 commit comments

Comments
 (0)