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/14 10:27:24 UTC

cordova-plugin-contacts git commit: CB-11574 Appium tests now use new injected promise chain methods

Repository: cordova-plugin-contacts
Updated Branches:
  refs/heads/master 96b5a8f71 -> 254083d59


CB-11574 Appium tests now use new injected promise chain methods


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

Branch: refs/heads/master
Commit: 254083d59000061771fdf3944bbaa42bc1c800eb
Parents: 96b5a8f
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Thu Jul 14 13:26:32 2016 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Thu Jul 14 13:26:32 2016 +0300

----------------------------------------------------------------------
 appium-tests/common/common.spec.js | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/254083d5/appium-tests/common/common.spec.js
----------------------------------------------------------------------
diff --git a/appium-tests/common/common.spec.js b/appium-tests/common/common.spec.js
index e2dbe51..440ee33 100644
--- a/appium-tests/common/common.spec.js
+++ b/appium-tests/common/common.spec.js
@@ -60,17 +60,13 @@ describe('Contacts Android', function () {
 
     function getDriver() {
         driver = wdHelper.getDriver(PLATFORM);
-        return wdHelper.getWebviewContext(driver)
+        return driver.getWebviewContext()
             .then(function(context) {
                 webviewContext = context;
                 return driver.context(webviewContext);
             })
-            .then(function () {
-                return wdHelper.waitForDeviceReady(driver);
-            })
-            .then(function () {
-                return wdHelper.injectLibraries(driver);
-            });
+            .waitForDeviceReady()
+            .injectLibraries();
     }
 
     function addContact(firstName, lastName, bday) {


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