Skip to content

Commit

Permalink
Set captureBeyondViewport to false by default (#335)
Browse files Browse the repository at this point in the history
* Set captureBeyondViewport to false by default

* make the change more clear
  • Loading branch information
AgnesToulet authored Mar 14, 2022
1 parent 3e9ad2f commit 029122a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ export class Browser {
height: scrollResult.scrollHeight,
});
}
return page.screenshot({ path: options.filePath, fullPage: options.fullPageImage, captureBeyondViewport: options.fullPageImage });
return page.screenshot({ path: options.filePath, fullPage: options.fullPageImage, captureBeyondViewport: options.fullPageImage || false });
}, 'screenshot');

if (options.scaleImage) {
Expand Down

0 comments on commit 029122a

Please sign in to comment.