Skip to content

Commit

Permalink
feat: add support for defaultViewport option
Browse files Browse the repository at this point in the history
All future options will be supported since all launch options are now forwarded to connect.
  • Loading branch information
gregberge committed Aug 15, 2018
1 parent e454973 commit 7b484a8
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,7 @@ class PuppeteerEnvironment extends NodeEnvironment {
throw new Error('wsEndpoint not found')
}
this.global.browser = await puppeteer.connect({
slowMo:
config && config.launch && config.launch.slowMo
? config.launch.slowMo
: undefined,
ignoreHTTPSErrors:
config && config.launch && config.launch.ignoreHTTPSErrors
? config.launch.ignoreHTTPSErrors
: undefined,
...config.launch,
browserWSEndpoint: wsEndpoint,
})
this.global.page = await this.global.browser.newPage()
Expand Down

0 comments on commit 7b484a8

Please sign in to comment.