chore: Define options for for doubleClick, buttonUp\Down routes
MODIFY
lib/protocol/routes.js
lib/protocol/routes.js
@@ -252,13 +252,13 @@ const METHOD_MAP = {
POST: {command: 'clickCurrent', payloadParams: {optional: ['button']}}
},
'/session/:sessionId/buttondown': {
- POST: {}
+ POST: {command: 'buttonDown', payloadParams: {optional: ['button']}}
},
'/session/:sessionId/buttonup': {
- POST: {}
+ POST: {command: 'buttonUp', payloadParams: {optional: ['button']}}
},
'/session/:sessionId/doubleclick': {
- POST: {}
+ POST: {command: 'doubleClick'}
},
'/session/:sessionId/touch/click': {
POST: {command: 'click', payloadParams: {required: ['element']}}

MODIFY
test/protocol/protocol-e2e-specs.js
test/protocol/protocol-e2e-specs.js
@@ -205,7 +205,7 @@ describe('Protocol', function () {
res.body.should.eql({
status: 405,
value: {
- message: 'Method is not implemented'
+ message: 'Method has not yet been implemented'
},
sessionId: 'foo'
});

MODIFY
test/protocol/routes-specs.js
test/protocol/routes-specs.js
@@ -40,7 +40,7 @@ describe('Protocol', function () {
}
let hash = shasum.digest('hex').substring(0, 8);
// Modify the hash whenever the protocol has intentionally been modified.
- hash.should.equal('789b5ab2');
+ hash.should.equal('e4576115');
});
});

chore: Define options for for doubleClick, buttonUp\Down routes (#406)