You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2016/12/09 01:16:51 UTC

cordova-plugin-contacts git commit: Fixing up appium spec JavaScript shtuff.

Repository: cordova-plugin-contacts
Updated Branches:
  refs/heads/master 6bf459db2 -> e94b0f01b


Fixing up appium spec JavaScript shtuff.


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

Branch: refs/heads/master
Commit: e94b0f01bde401d45e1a56e585de9b7569c91d02
Parents: 6bf459d
Author: filmaj <ma...@gmail.com>
Authored: Thu Dec 8 13:54:56 2016 -0800
Committer: filmaj <ma...@gmail.com>
Committed: Thu Dec 8 17:16:36 2016 -0800

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


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


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