Skip to content

Commit

Permalink
[node] Fixing Chrome capabilities structure, it uses 'goog:chromeOpti…
Browse files Browse the repository at this point in the history
…ons' key now
  • Loading branch information
barancev committed Jan 25, 2019
1 parent 8b227cf commit 701e59f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions javascript/node/selenium-webdriver/test/chrome/options_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ describe('chrome.Options', function() {
let options = new chrome.Options();
assert.deepEqual(
options[symbols.serialize](),
{browserName: 'chrome', chromeOptions: {}});
{browserName: 'chrome', 'goog:chromeOptions': {}});

options.addArguments('a', 'b');
assert.deepEqual(
options[symbols.serialize](),
{
browserName: 'chrome',
chromeOptions: {
'goog:chromeOptions': {
args: ['a', 'b']
}
});
Expand All @@ -50,14 +50,14 @@ describe('chrome.Options', function() {
let options = new chrome.Options();
assert.deepEqual(
options[symbols.serialize](),
{browserName: 'chrome', chromeOptions: {}});
{browserName: 'chrome', 'goog:chromeOptions': {}});

options.addArguments(['a', 'b'], 'c', [1, 2], 3);
assert.deepEqual(
options[symbols.serialize](),
{
browserName: 'chrome',
chromeOptions: {
'goog:chromeOptions': {
args: ['a', 'b', 'c', 1, 2, 3]
}
});
Expand Down Expand Up @@ -89,8 +89,8 @@ describe('chrome.Options', function() {
.addExtensions(__filename)
[symbols.serialize]();

assert.equal(wire.chromeOptions.extensions.length, 1);
assert.equal(await wire.chromeOptions.extensions[0], expected);
assert.equal(wire['goog:chromeOptions'].extensions.length, 1);
assert.equal(await wire['goog:chromeOptions'].extensions[0], expected);
});
});
});
Expand Down

0 comments on commit 701e59f

Please sign in to comment.