add POST for system_time in order to set payload
MODIFY
lib/protocol/routes.js
lib/protocol/routes.js
@@ -347,7 +347,8 @@ const METHOD_MAP = {
POST: {command: 'mobileShake'}
},
'/wd/hub/session/:sessionId/appium/device/system_time': {
- GET: {command: 'getDeviceTime', payloadParams: {optional: ['format']}}
+ GET: {command: 'getDeviceTime', payloadParams: {optional: ['format']}},
+ POST: {command: 'getDeviceTime', payloadParams: {optional: ['format']}}
},
'/wd/hub/session/:sessionId/appium/device/lock': {
POST: {command: 'lock', payloadParams: {optional: ['seconds']}}

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('9e59ddee');
+ hash.should.equal('17fb263f');
});
});

add POST for system_time in order to set payload (#294)