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'); }); });