Closed christian-bromann closed 7 years ago
See webdriverio/wdio-mocha-framework#6 Example:
// ...but this fails with `AssertionError: expected 0 to be above 990` (i.e. it doesn't wait): browser.addCommand('customWrapWdio', function async (a) { return browser.customWdio(a) .then((b) => { return b + 1 }) })
Added a failing test case for this in https://github.com/webdriverio/wdio-mocha-framework/pull/7
See webdriverio/wdio-mocha-framework#6 Example: