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

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

          Commit 254083d59000061771fdf3944bbaa42bc1c800eb in cordova-plugin-contacts's branch refs/heads/master from alsorokin
          [ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-contacts.git;h=254083d ]

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

          jira-bot ASF subversion and git services added a comment - Commit 254083d59000061771fdf3944bbaa42bc1c800eb in cordova-plugin-contacts's branch refs/heads/master from alsorokin [ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-contacts.git;h=254083d ] CB-11574 Appium tests now use new injected promise chain methods

          People

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

            Dates

              Created:
              Updated:
              Resolved: