Skip to content
Permalink
Browse files
added headless
  • Loading branch information
sellers3 committed Dec 2, 2019
1 parent c9878de commit 771ed6d5516c4cd893d73763cfb3e40cc1770291
Showing 1 changed file with 1 addition and 1 deletion.
@@ -19,7 +19,7 @@ const toMatchImageSnapshot = configureToMatchImageSnapshot({
expect.extend({ toMatchImageSnapshot })

beforeAll( async() => {
browser = await puppeteer.launch({ headless: false, slowMo: delayMS, args: [`--window-size=${width},${height}`, '--no-sandbox'] })
browser = await puppeteer.launch({ headless: true, slowMo: delayMS, args: [`--window-size=${width},${height}`, '--no-sandbox'] })
page = await browser.newPage()
await page.setViewport({ width, height })
})

0 comments on commit 771ed6d

Please sign in to comment.