From bdc4429fc74c82e2e5bee8ba07c6da5719d515c8 Mon Sep 17 00:00:00 2001 From: Li Zheng Date: Tue, 5 Dec 2017 22:04:58 +0800 Subject: [PATCH 1/2] placeholder for ~ locator only test case write once run on both Appium and WebDriverIO --- lib/helper/WebDriverIO.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/lib/helper/WebDriverIO.js b/lib/helper/WebDriverIO.js index 724f74188..2d9245130 100644 --- a/lib/helper/WebDriverIO.js +++ b/lib/helper/WebDriverIO.js @@ -1870,6 +1870,27 @@ class WebDriverIO extends Helper { )); }); } + + /** + * placeholder for ~ locator only test case write once run on both Appium and WebDriverIO + */ + runOnIOS(caps, fn) { + return; + } + + /** + * placeholder for ~ locator only test case write once run on both Appium and WebDriverIO + */ + runOnAndroid(caps, fn) { + return; + } + + /** + * placeholder for ~ locator only test case write once run on both Appium and WebDriverIO + */ + runInWeb(fn) { + return fn(); + } } function proceedSee(assertType, text, context, strict = false) { From 057c8e73d164b75c4f9c63e4b102d93683e9ef43 Mon Sep 17 00:00:00 2001 From: Li Zheng Date: Wed, 6 Dec 2017 08:22:01 +0800 Subject: [PATCH 2/2] To pass houndci --- lib/helper/WebDriverIO.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/helper/WebDriverIO.js b/lib/helper/WebDriverIO.js index 2d9245130..3c8d97897 100644 --- a/lib/helper/WebDriverIO.js +++ b/lib/helper/WebDriverIO.js @@ -1875,14 +1875,12 @@ class WebDriverIO extends Helper { * placeholder for ~ locator only test case write once run on both Appium and WebDriverIO */ runOnIOS(caps, fn) { - return; } /** * placeholder for ~ locator only test case write once run on both Appium and WebDriverIO */ runOnAndroid(caps, fn) { - return; } /**