disable puppeteer sandbox for tests

This commit is contained in:
Pooya Parsa 2017-10-30 00:08:23 +03:30
parent be4fc4a518
commit 45bba51e96

View File

@ -34,8 +34,9 @@ test.before('Init Nuxt.js', async t => {
})
test.before('Start Puppeteer', async t => {
// https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#puppeteerlaunchoptions
browser = await puppeteer.launch({
// https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#puppeteerlaunchoptions
args: ['--no-sandbox', '--disable-setuid-sandbox']
})
})