You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[🐛 Bug]: The executeAsync method from shim.js does not get the timeout from it hook, which is causing the tests with custom timeout to throw a Timeout error.
#13342
Open
3 tasks done
MonaDotasara opened this issue
Aug 8, 2024
· 3 comments
I have timeout defined for tests in the it hook (spec) which is greater than jasmineOpts.defaultTimeoutInterval specified in the wdio configuration. But during the execution, the timeout defined for the spec is neglected and a Timeout error is thrown as soon as the defaultTimeoutInterval is complete.
While debugging I found that the executeAsync method defined in the node_modules/@wdio/utils/build/shim.js file is trying to set the timeout and it is neglecting the custom timeout defined in spec and setting it to defaultTimeoutInterval as the this?.runnable?._timeout is always shown as undefined from below code when this method is called.
Unfortunately we can't help you without a reproducible example in this matter. Please read our contributing guidelines on how to create a reproducible example. If you can't provide a reproducible example we will close this issue in 7 days.
If you have any questions please reach out to us on our Discord channel. We are happy to help you out there.
We greatly appreciate any contributions that help resolve the bug. While we understand that active contributors have their own priorities, we kindly request your assistance if you rely on this bug being fixed. We encourage you to take a look at our contribution guidelines or join our friendly Discord development server, where you can ask any questions you may have. Thank you for your support, and cheers!
Have you read the Contributing Guidelines on issues?
WebdriverIO Version
8.39.0
Node.js Version
20.16.0
Mode
WDIO Testrunner
Which capabilities are you using?
No response
What happened?
I have timeout defined for tests in the
it
hook (spec) which is greater thanjasmineOpts.defaultTimeoutInterval
specified in the wdio configuration. But during the execution, the timeout defined for the spec is neglected and a Timeout error is thrown as soon as the defaultTimeoutInterval is complete.While debugging I found that the
executeAsync
method defined in thenode_modules/@wdio/utils/build/shim.js
file is trying to set the timeout and it is neglecting the custom timeout defined in spec and setting it todefaultTimeoutInterval
as thethis?.runnable?._timeout
is always shown as undefined from below code when this method is called.Note: I am using jasmine framework with WDIO.
What is your expected behavior?
The test should continue the execution for the time defined in the spec and should pass.
How to reproduce the bug.
jasmineOpts.defaultTimeoutInterval
to 10 seconds inwdio.conf.ts
file.Relevant log output
Code of Conduct
Is there an existing issue for this?
The text was updated successfully, but these errors were encountered: