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
Let's say if we have two tests test1 and test2 and we have async hooks defined - beforeTest and afterTest
When a test test1 gets timed out, the afterTest hook is getting called with wrong test test2 two times instead of getting called for test1 and test2. In logs we can the below logs
[0-0] beforeTest called for test test 1
[0-0] beforeTest called for test test 2
[0-0] afterTest called for test test 2 with error - Error: Timeout
[0-0] afterTest called for test test 2 with error - Error: Timeout
What is your expected behavior?
beforeTest for test2 should get called after the afterTest for test1 gets called
afterTest should get called for both test1 and test2
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.35.1
Node.js Version
20.11.1
Mode
WDIO Testrunner
Which capabilities are you using?
What happened?
Let's say if we have two tests
test1
andtest2
and we have async hooks defined -beforeTest
andafterTest
When a test
test1
gets timed out, theafterTest
hook is getting called with wrong testtest2
two times instead of getting called fortest1
andtest2
. In logs we can the below logsWhat is your expected behavior?
beforeTest
fortest2
should get called after theafterTest
fortest1
gets calledafterTest
should get called for bothtest1
andtest2
How to reproduce the bug.
Reproducible example: https://github.com/sriteja777/wdio_timeout_issue
Just clone the repo and run the tests -
npm run wdio
. You can observe in logs thatafterTest
is getting called fortest2
two times.Relevant log output
Code of Conduct
Is there an existing issue for this?
The text was updated successfully, but these errors were encountered: