You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by al...@apache.org on 2016/07/11 13:17:04 UTC

cordova-plugin-camera git commit: CB-11553 Pend failing Appium tests on Sauce Labs for the time being

Repository: cordova-plugin-camera
Updated Branches:
  refs/heads/master acff98058 -> b69571724


CB-11553 Pend failing Appium tests on Sauce Labs for the time being


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/b6957172
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/b6957172
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/b6957172

Branch: refs/heads/master
Commit: b69571724035f41642f3ee612c5b66e1f0c4386c
Parents: acff980
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Mon Jul 11 16:16:52 2016 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Mon Jul 11 16:16:52 2016 +0300

----------------------------------------------------------------------
 appium-tests/android/android.spec.js | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/b6957172/appium-tests/android/android.spec.js
----------------------------------------------------------------------
diff --git a/appium-tests/android/android.spec.js b/appium-tests/android/android.spec.js
index 6c91609..6dc69e1 100644
--- a/appium-tests/android/android.spec.js
+++ b/appium-tests/android/android.spec.js
@@ -292,6 +292,12 @@ describe('Camera tests Android.', function () {
         }
     }
 
+    function checkSauce(pending) {
+        if (global.USE_SAUCE) {
+            pending('This test cannot run on Sauce Labs yet. We\'re working on it!');
+        }
+    }
+
     it('camera.ui.util configuring driver and starting a session', function (done) {
         getDriver()
             .then(function () {
@@ -356,6 +362,7 @@ describe('Camera tests Android.', function () {
         // getPicture() with mediaType: VIDEO, sourceType: PHOTOLIBRARY
         it('camera.ui.spec.2 Selecting only videos', function (done) {
             checkSession(done);
+            checkSauce(pending);
             var spec = function () {
                 var options = { sourceType: cameraConstants.PictureSourceType.PHOTOLIBRARY,
                                 mediaType: cameraConstants.MediaType.VIDEO };
@@ -488,6 +495,7 @@ describe('Camera tests Android.', function () {
 
         it('camera.ui.spec.6 Verifying target image size, sourceType=PHOTOLIBRARY', function (done) {
             checkSession(done);
+            checkSauce(pending);
             var spec = generateSpec({
                 quality: 50,
                 allowEdit: false,
@@ -518,6 +526,7 @@ describe('Camera tests Android.', function () {
 
         it('camera.ui.spec.8 Verifying target image size, sourceType=PHOTOLIBRARY, DestinationType=NATIVE_URI', function (done) {
             checkSession(done);
+            checkSauce(pending);
             var spec = generateSpec({
                 quality: 50,
                 allowEdit: false,
@@ -549,6 +558,7 @@ describe('Camera tests Android.', function () {
 
         it('camera.ui.spec.10 Verifying target image size, sourceType=PHOTOLIBRARY, DestinationType=NATIVE_URI, quality=100', function (done) {
             checkSession(done);
+            checkSauce(pending);
             var spec = generateSpec({
                 quality: 100,
                 allowEdit: true,
@@ -566,6 +576,7 @@ describe('Camera tests Android.', function () {
         generateOptions().forEach(function (spec) {
             it('camera.ui.spec.11.' + spec.id + ' Combining options. ' + spec.description, function (done) {
                 checkSession(done);
+                checkSauce(pending);
                 if (spec.options.sourceType == cameraConstants.PictureSourceType.CAMERA) {
                     checkCamera(pending);
                 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org