cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Sorokin (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CB-11574) Appium tests for contacts should use new methods injected to the promise chain by wdHelper
Date Thu, 14 Jul 2016 10:37:20 GMT

     [ 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


Mime
View raw message