Skip to content

Commit

Permalink
Add unit test for showbrowser agrument (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
EzioLi01 authored Jan 11, 2024
1 parent 1605a05 commit 0cfa862
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/browserHelper.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,14 @@ suite('browserHelper', function () {
break;
}
});

test('Should return without browser info if Showbrowser argument is set to false', async () => {
var opts = {};
opts.target = chrome;
opts.url = url;
opts.showBrowser = false;
const browserInfo = await browser.launchBrowser(opts);
assert.strictEqual(browserInfo, undefined);
});
});

0 comments on commit 0cfa862

Please sign in to comment.