Skip to content

Commit

Permalink
Merge pull request #1425 from cozy/pupeteer-await
Browse files Browse the repository at this point in the history
chore: Await puppeteer setViewport
  • Loading branch information
y-lohse authored Apr 3, 2020
2 parents 6ece7d7 + 4ee941b commit f593115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/screenshots.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ const main = async () => {
const componentViewport = componentViewportSpec
? parseViewportArgument(componentViewportSpec)
: parsedViewport
page.setViewport(componentViewport)
await page.setViewport(componentViewport)
await screenshotComponent(page, {
component,
screenshotDir: args.screenshotDir,
Expand Down

0 comments on commit f593115

Please sign in to comment.