Appium tests: adjust swipe distance on Android

This commit is contained in:
Alexander Sorokin 2016-03-02 17:39:59 +03:00
parent d51e23ad7b
commit 56b9469313

View File

@ -101,7 +101,7 @@ describe('Camera tests Android.', function () {
var touchTile = new wd.TouchAction(), var touchTile = new wd.TouchAction(),
swipeRight = new wd.TouchAction(); swipeRight = new wd.TouchAction();
touchTile.press({x: Math.round(screenWidth / 4), y: Math.round(screenHeight / 5)}).release(); touchTile.press({x: Math.round(screenWidth / 4), y: Math.round(screenHeight / 5)}).release();
swipeRight.press({x: 10, y: Math.round(screenHeight / 2)}) swipeRight.press({x: 10, y: Math.round(screenHeight * 0.8)})
.wait(300) .wait(300)
.moveTo({x: Math.round(screenWidth / 2), y: Math.round(screenHeight / 2)}) .moveTo({x: Math.round(screenWidth / 2), y: Math.round(screenHeight / 2)})
.release(); .release();