[ Bug]: <afterEach hook doesn’t get into allure report>
Author: paul-gladoonCreated Nov 23, 2023Updated Sep 17, 2026
LabelsBug 🐛help wanted
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
WebdriverIO Version
8.24.0
Node.js Version
18.4.0
Mode
WDIO Testrunner
Which capabilities are you using?
capabilities: [{
browserName: 'chrome',
}]What happened?
afterEach hook doesn’t get into allure report.
I recently moved from version wdio 7v (there everything worked as expected). With the moving to 8.22.0-8.24.0, I noticed that the steps that are in afterEach hook are not included in the allure report.
Previously it was like this:
For now, afterEach hook doesn’t get into allure report, but what is interesting is that beforeEach hook works as expected.
What is your expected behavior?
How to reproduce the bug.
- clone this repo: https://github.com/paul-gladoon/wdio-issues
- npm run test:local
- allure serve
You will see that beforeEach hook is present, but afterEach hook doesn’t.
Relevant log output
no needCode of Conduct
- I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- I have searched the existing issues
Source: webdriverio/webdriverio