Skip to content

Commit

Permalink
Allow launch options/args to be passed in from running applications
Browse files Browse the repository at this point in the history
  • Loading branch information
boyewale committed Jul 19, 2022
1 parent 576f848 commit 611acbe
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 611acbe

Please sign in to comment.