mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-31 12:42:50 +08:00
CB-11656 (Android) Appium tests: Fixed side menu opening on certain resolutions
This commit is contained in:
parent
c13e9f327b
commit
5807458a1d
@ -118,12 +118,12 @@ describe('Camera tests Android.', function () {
|
|||||||
tapTile
|
tapTile
|
||||||
.tap({
|
.tap({
|
||||||
x: Math.round(screenWidth / 4),
|
x: Math.round(screenWidth / 4),
|
||||||
y: Math.round(screenHeight / 5)
|
y: Math.round(screenHeight / 4)
|
||||||
});
|
});
|
||||||
swipeRight
|
swipeRight
|
||||||
.press({x: 10, y: 100})
|
.press({x: 10, y: 100})
|
||||||
.wait(300)
|
.wait(300)
|
||||||
.moveTo({x: Math.round(screenWidth / 2), y: 0})
|
.moveTo({x: Math.round(screenWidth - (screenWidth / 8)), y: 0})
|
||||||
.release()
|
.release()
|
||||||
.wait(1000);
|
.wait(1000);
|
||||||
if (options.allowEdit) {
|
if (options.allowEdit) {
|
||||||
@ -306,8 +306,8 @@ describe('Camera tests Android.', function () {
|
|||||||
.context(webviewContext)
|
.context(webviewContext)
|
||||||
.execute(function () {
|
.execute(function () {
|
||||||
return {
|
return {
|
||||||
'width': window.innerWidth,
|
'width': screen.availWidth,
|
||||||
'height': window.innerHeight
|
'height': screen.availHeight
|
||||||
};
|
};
|
||||||
}, [])
|
}, [])
|
||||||
.then(function (size) {
|
.then(function (size) {
|
||||||
@ -330,8 +330,10 @@ describe('Camera tests Android.', function () {
|
|||||||
})
|
})
|
||||||
.then(function () {
|
.then(function () {
|
||||||
cameraAvailable = true;
|
cameraAvailable = true;
|
||||||
|
}, function () {
|
||||||
|
return recreateSession();
|
||||||
})
|
})
|
||||||
.finally(done);
|
.done(done);
|
||||||
}, 5 * MINUTE);
|
}, 5 * MINUTE);
|
||||||
|
|
||||||
describe('Specs.', function () {
|
describe('Specs.', function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user