Skip to content

Commit 0cfa862

Browse files
authored
Add unit test for showbrowser agrument (#458)
1 parent 1605a05 commit 0cfa862

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/browserHelper.test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,14 @@ suite('browserHelper', function () {
5151
break;
5252
}
5353
});
54+
55+
test('Should return without browser info if Showbrowser argument is set to false', async () => {
56+
var opts = {};
57+
opts.target = chrome;
58+
opts.url = url;
59+
opts.showBrowser = false;
60+
const browserInfo = await browser.launchBrowser(opts);
61+
assert.strictEqual(browserInfo, undefined);
62+
});
5463
});
5564

0 commit comments

Comments
 (0)