Skip to content

Commit

Permalink
Merge pull request #93 from jamesnicholls/pin-puppeteer-version
Browse files Browse the repository at this point in the history
Pin puppeteer version
  • Loading branch information
jamesnicholls authored Nov 6, 2018
2 parents 9afc530 + 669dd4d commit c3b581f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/smoke/smoke-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ class SmokeTest {
const crossBrowserTests = [];

// https://github.com/GoogleChrome/puppeteer/issues/2377
const launchOptions = (process.env.NODE_ENV === 'development') ? {args: ['--ignore-certificate-errors', '--enable-features=NetworkService']} : {};
const launchOptions = (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test') ?
{args: ['--ignore-certificate-errors', '--enable-features=NetworkService', '--no-sandbox', '--disable-setuid-sandbox']} :
{};
this.browser = await puppeteer.launch(launchOptions);

for (let suiteOptions of configsToRun) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"directly": "^2.0.6",
"inquirer": "^5.0.1",
"node-fetch": "^2.1.1",
"puppeteer": "^1.8.0",
"puppeteer": "1.9.0",
"webdriverio": "^4.11.0"
},
"devDependencies": {
Expand Down

0 comments on commit c3b581f

Please sign in to comment.