testing-library / webdriverio-testing-library

🕷️ Simple and complete WebdriverIO DOM testing utilities that encourage good testing practices.
17 stars 14 forks source link

Compatibility with v8 of WebdriverIO #42

Closed christian-bromann closed 2 years ago

christian-bromann commented 2 years ago

Hey 👋

just wanted to let you know about a breaking change with the upcoming v8 release. In there we remove all browser commands from element scopes. This breaks in injectDOMTestingLibrary where container is an element (with selector 'body'). I suggest to call execute as follows container.parent.execute(...) to run the command from the browser scope. This would already work with today v7 and prior versions.

Happy to provide a PR if needed.

olivierwilkinson commented 2 years ago

Hi there,

Thank you for the heads up and the PR! I'll have a look at it as soon as I am able 😁

github-actions[bot] commented 2 years ago

:tada: This issue has been resolved in version 3.0.6 :tada:

The release is available on:

Your semantic-release bot :package::rocket: