Skip to content

Commit

Permalink
build: close alert before taking a screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Nov 7, 2019
1 parent 28c02ea commit d68b78d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/screenshot/src/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ module.exports = ({ goto, ...gotoOpts } = {}) => {
...args
} = opts

page.on('dialog', async dialog => {
await dialog.dismiss()
})

await goto(page, { url, device, ...args })

if (disableAnimations) {
Expand Down

0 comments on commit d68b78d

Please sign in to comment.