You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Alexander Sorokin (JIRA)" <ji...@apache.org> on 2016/07/14 10:37:20 UTC

[jira] [Closed] (CB-11574) Appium tests for contacts should use new methods injected to the promise chain by wdHelper

     [ https://issues.apache.org/jira/browse/CB-11574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Sorokin closed CB-11574.
----------------------------------
    Resolution: Fixed

> Appium tests for contacts should use new methods injected to the promise chain by wdHelper
> ------------------------------------------------------------------------------------------
>
>                 Key: CB-11574
>                 URL: https://issues.apache.org/jira/browse/CB-11574
>             Project: Apache Cordova
>          Issue Type: Test
>          Components: Appium, Plugin Contacts
>            Reporter: Alexander Sorokin
>            Assignee: Alexander Sorokin
>              Labels: triaged
>
> Because they look more clean:
> {code}
> 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);
>         });
> }
> {code}
> vs
> {code}
> function getDriver() {
>     driver = wdHelper.getDriver(PLATFORM);
>     return driver.getWebviewContext()
>         .then(function(context) {
>             webviewContext = context;
>             return driver.context(webviewContext);
>         })
>         .waitForDeviceReady()
>         .injectLibraries();
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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