mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-18 19:22:51 +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(),
|
||||
swipeRight = new wd.TouchAction();
|
||||
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)
|
||||
.moveTo({x: Math.round(screenWidth / 2), y: Math.round(screenHeight / 2)})
|
||||
.release();
|
||||
|
Loading…
Reference in New Issue
Block a user