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/03/10 11:27:59 UTC

cordova-plugin-camera git commit: Appium tests: tweaking some timeouts and default screenshot path

Repository: cordova-plugin-camera
Updated Branches:
  refs/heads/master c5f5a46e3 -> 1348d2e13


Appium tests: tweaking some timeouts and default screenshot path


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/1348d2e1
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/1348d2e1
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/1348d2e1

Branch: refs/heads/master
Commit: 1348d2e138a513bf4792dfb815c02ae51d08db86
Parents: c5f5a46
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Thu Mar 10 13:27:34 2016 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Thu Mar 10 13:27:34 2016 +0300

----------------------------------------------------------------------
 appium-tests/android/android.spec.js     | 2 +-
 appium-tests/helpers/screenshotHelper.js | 4 ++--
 appium-tests/ios/ios.spec.js             | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/1348d2e1/appium-tests/android/android.spec.js
----------------------------------------------------------------------
diff --git a/appium-tests/android/android.spec.js b/appium-tests/android/android.spec.js
index b3abf86..37485ca 100644
--- a/appium-tests/android/android.spec.js
+++ b/appium-tests/android/android.spec.js
@@ -588,5 +588,5 @@ describe('Camera tests Android.', function () {
 
     it('camera.ui.util Destroy the session', function (done) {
         return driver.quit(done);
-    }, 10000);
+    }, MINUTE);
 });

http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/1348d2e1/appium-tests/helpers/screenshotHelper.js
----------------------------------------------------------------------
diff --git a/appium-tests/helpers/screenshotHelper.js b/appium-tests/helpers/screenshotHelper.js
index 2082105..e3cf136 100644
--- a/appium-tests/helpers/screenshotHelper.js
+++ b/appium-tests/helpers/screenshotHelper.js
@@ -23,7 +23,7 @@
 'use strict';
 
 var path = require('path');
-var screenshotPath = global.SCREENSHOT_PATH || path.join(__dirname, '../../appium_screenshots/');
+var screenshotPath = global.SCREENSHOT_PATH || path.join(__dirname, '../../../appium_screenshots/');
 
 function generateScreenshotName() {
     var date = new Date();
@@ -51,7 +51,7 @@ module.exports.saveScreenshot = function (driver) {
             oldContext = cc;
         })
         .context('NATIVE_APP')
-        .saveScreenshot(screenshotPath + generateScreenshotName())
+        .saveScreenshot(path.join(screenshotPath, generateScreenshotName()))
         .then(function () {
             return driver.context(oldContext);
         });

http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/1348d2e1/appium-tests/ios/ios.spec.js
----------------------------------------------------------------------
diff --git a/appium-tests/ios/ios.spec.js b/appium-tests/ios/ios.spec.js
index 0232357..4b82fb2 100644
--- a/appium-tests/ios/ios.spec.js
+++ b/appium-tests/ios/ios.spec.js
@@ -284,5 +284,5 @@ describe('Camera tests iOS.', function () {
 
     it('camera.ui.util.4 Destroy the session', function (done) {
         driver.quit(done);
-    }, 10000);
+    }, MINUTE);
 });


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