New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐛 Bug]: webdriverio's expect not working with node 16 #8219
Comments
Thanks for reporting! Any contributions that resolves the bug are highly appreciated. Please take a look into our contribution guidelines and let us know if you have any questions. Cheers! |
Thanks @christian-bromann. Like I said in the description, it is obvious that this has to do with Do you have any guidances ? |
I think you are pointing into the right direction. I have the same guess. |
@christian-bromann @Badisi - I'm encountering the same issue as well. I think it was introduced as part of #8175. Is it as simple as changing this to expectAsync instead of expectSync? |
@bburggraff mind raising a PR with a test for this? |
Sorry @christian-bromann , I just am getting back to this. It looks like it's being addressed as part of #8278 |
@bburggraff that PR just reverts the patch that has introduced this bug trying to patch another bug. I would prefer to have a fix for this so we don't have to revert things. |
I see. I'm not super familiar with the code base, but I'll try to look into this. |
fixed in #8300 |
Have you read the Contributing Guidelines on issues?
WebdriverIO Version
7.19.5
Node.js Version
16.14.2
Mode
WDIO Testrunner
Which capabilities are you using?
What happened?
The following code is working fine on
node12
,node14
but not onnode16
:A possible workaround is :
It's obvious that this has to do with
expect-webdriverio
andjasmine
but I don't know exactly where the problem is.Any advices on how I should handle this ? Is the workaround legit or is it simply a bug that needs to be fixed ?
Thanks!
What is your expected behavior?
No response
How to reproduce the bug.
Run the example, provided in the "What happened?" section above, in a
node16
environment.Relevant log output
Code of Conduct
Is there an existing issue for this?
The text was updated successfully, but these errors were encountered: