CB-12622: (android) Appium tests: Bust Android 6 and 7 permission dialogs

This commit is contained in:
Alexander Sorokin
2017-04-20 09:01:54 +03:00
parent 180f7b5510
commit 9badea4c95
2 changed files with 39 additions and 1 deletions
+3
View File
@@ -169,6 +169,7 @@ module.exports.checkPicture = function (pid, options, cb) {
return;
}
}
try {
if (result.indexOf('file:') === 0 ||
result.indexOf('content:') === 0 ||
@@ -184,6 +185,8 @@ module.exports.checkPicture = function (pid, options, cb) {
} else {
verifyFile(entry);
}
}, function (err) {
errorCallback(err);
});
} else {
displayImage(result);