Details
-
Test
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
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(); }
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-11574Appium tests now use new injected promise chain methods