Skip to content

Commit

Permalink
Merge pull request #195 from Financial-Times/puppeteer-crash-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
boyewale authored Jul 22, 2022
2 parents 576f848 + 611acbe commit 00e199a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/smoke/smoke-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class SmokeTest {
this.breakpoint = options.breakpoint;
this.browsers = options.browsers;
this.https = this.host.includes('https');
this.launchOptions = options.launchOptions || {};
//TODO: default should be chrome, browsers will be opt-in

if (!/https?\:\/\//.test(this.host)) {
Expand Down Expand Up @@ -64,7 +65,7 @@ class SmokeTest {
const puppetTests = [];
const crossBrowserTests = [];

this.browser = await puppeteer.launch();
this.browser = await puppeteer.launch(this.launchOptions);

for (let suiteOptions of configsToRun) {
for (let path in suiteOptions.urls) { //eslint-disable-line guard-for-in
Expand Down

0 comments on commit 00e199a

Please sign in to comment.