Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11574

Appium tests for contacts should use new methods injected to the promise chain by wdHelper

    XMLWordPrintableJSON

Details

    Description

      Because they look more clean:

      function getDriver() {
          driver = wdHelper.getDriver(PLATFORM);
          return wdHelper.getWebviewContext(driver)
              .then(function(context) {
                  webviewContext = context;
                  return driver.context(webviewContext);
              })
              .then(function () {
                  return wdHelper.waitForDeviceReady(driver);
              })
              .then(function () {
                  return wdHelper.injectLibraries(driver);
              });
      }
      

      vs

      function getDriver() {
          driver = wdHelper.getDriver(PLATFORM);
          return driver.getWebviewContext()
              .then(function(context) {
                  webviewContext = context;
                  return driver.context(webviewContext);
              })
              .waitForDeviceReady()
              .injectLibraries();
      }
      

      Attachments

        Activity

          People

            alsorokin Alexander Sorokin
            alsorokin Alexander Sorokin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: