mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-19 03:42:52 +08:00
Appium tests: adjust swipe distance on Android
This commit is contained in:
parent
d51e23ad7b
commit
56b9469313
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user