You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/07/14 10:28:20 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=15376726#comment-15376726 ]
ASF subversion and git services commented on CB-11574:
------------------------------------------------------
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
> 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