mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-31 12:42:50 +08:00
CB-11631 Appium tests: A fix for a flaky "selection cancelled" failure
This commit is contained in:
parent
fee72c7c04
commit
e588907ac7
@ -398,7 +398,9 @@ describe('Camera tests Android.', function () {
|
||||
.then(function () {
|
||||
// success means we're still in native app
|
||||
return driver
|
||||
.deviceKeyEvent(BACK_BUTTON);
|
||||
.deviceKeyEvent(BACK_BUTTON)
|
||||
// give native app some time to close
|
||||
.sleep(2000);
|
||||
}, function () {
|
||||
// error means we're already in webview
|
||||
return driver;
|
||||
|
@ -125,7 +125,6 @@ module.exports.checkPicture = function (pid, options, cb) {
|
||||
|
||||
// Skip image type check if destination is NATIVE_URI and source - device's photoalbum
|
||||
// https://github.com/apache/cordova-plugin-camera/#ios-quirks-1
|
||||
// TODO: correct link above
|
||||
var skipFileTypeCheckiOS = isIos && options.destinationType === Camera.DestinationType.NATIVE_URI &&
|
||||
(options.sourceType === Camera.PictureSourceType.PHOTOLIBRARY ||
|
||||
options.sourceType === Camera.PictureSourceType.SAVEDPHOTOALBUM);
|
||||
|
Loading…
Reference in New Issue
Block a user