Open jandockx opened 3 years ago
More luck with debugging the issue this time: this seems to happen once mocaccino is using the rollupified bundle of Mocha that was introduced in Mocha 8.1.0. When you forcefully downgrade mocaccino to use Mocha 8.0.0 it seems to work as expected, upgrading it back to 8.1.0 breaks it, creating the window._webdriver_manualPoll is not a function
error. (at least the bundling https://github.com/mochajs/mocha/pull/4293 is what I would expect to be the culprit as everything else seems to be pretty unsuspicious: https://github.com/mochajs/mocha/releases/tag/v8.1.0)
I still have no idea why this is creating a problem in the WebDriver context though: when bundling the test output of min-wd
and loading it up in a real browser, window._webdriver_manualPoll
and siblings will be present and callable.
I've been running BrowserStack tests with
mochify
for years in the F/OSS project Toryt Contracts. I just tried to upgrade dependencies, and found that, with my existing definitions in any case, this still works with version7.1.1
, but fails for all browsers starting from version8.0.0
.Does anybody have any idea what is wrong?