You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by al...@apache.org on 2017/05/03 09:13:53 UTC
cordova-paramedic git commit: Allow testing of wkwebview plugin
Repository: cordova-paramedic
Updated Branches:
refs/heads/master 22f2a73b9 -> 828340f2d
Allow testing of wkwebview plugin
Project: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/commit/828340f2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/tree/828340f2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/diff/828340f2
Branch: refs/heads/master
Commit: 828340f2d6ce4c4666ae115ca5697757955c5f26
Parents: 22f2a73
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Wed May 3 10:43:43 2017 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Wed May 3 12:13:33 2017 +0300
----------------------------------------------------------------------
lib/paramedic.js | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/828340f2/lib/paramedic.js
----------------------------------------------------------------------
diff --git a/lib/paramedic.js b/lib/paramedic.js
index 603a0e1..36b8edd 100644
--- a/lib/paramedic.js
+++ b/lib/paramedic.js
@@ -824,6 +824,23 @@ ParamedicRunner.prototype.runSauceTests = function () {
});
})
.then(function () {
+ var isWkWebview = false;
+ var plugins = self.config.getPlugins();
+ for (var plugin in plugins) {
+ if (plugins[plugin].indexOf('wkwebview') >= 0) {
+ isWkWebview = true;
+ }
+ }
+ if (isWkWebview) {
+ logger.normal('cordova-paramedic: navigating to a test page');
+ return driver
+ .sleep(1000)
+ .elementByXPath('//*[text() = "Auto Tests"]')
+ .click();
+ }
+ return driver;
+ })
+ .then(function () {
logger.normal('cordova-paramedic: connecting to app');
var platform = self.config.getPlatformId();
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org