From e1f1883363114a91285dca92366f392fe9653caa Mon Sep 17 00:00:00 2001 From: Isaac Murchie Date: Fri, 28 Oct 2016 09:10:29 +0200 Subject: [PATCH] Add capabilities to create session --- lib/mjsonwp/routes.js | 2 +- test/mjsonwp/routes-specs.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mjsonwp/routes.js b/lib/mjsonwp/routes.js index 3d3ca9af4..10cbea297 100644 --- a/lib/mjsonwp/routes.js +++ b/lib/mjsonwp/routes.js @@ -9,7 +9,7 @@ const METHOD_MAP = { GET: {command: 'getStatus'} }, '/wd/hub/session': { - POST: {command: 'createSession', payloadParams: {required: ['desiredCapabilities'], optional: ['requiredCapabilities']}} + POST: {command: 'createSession', payloadParams: {required: ['desiredCapabilities'], optional: ['requiredCapabilities', 'capabilities']}} }, '/wd/hub/sessions': { GET: {command: 'getSessions'} diff --git a/test/mjsonwp/routes-specs.js b/test/mjsonwp/routes-specs.js index 948c4f469..39bf222ab 100644 --- a/test/mjsonwp/routes-specs.js +++ b/test/mjsonwp/routes-specs.js @@ -38,7 +38,7 @@ describe('MJSONWP', () => { } var hash = shasum.digest('hex').substring(0, 8); // Modify the hash whenever the protocol has intentionally been modified. - hash.should.equal('8c54fd6e'); + hash.should.equal('24791855'); }); });