#11720·webdriverio

[ 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?

WebdriverIO Version

8.24.0

Node.js Version

18.4.0

Mode

WDIO Testrunner

Which capabilities are you using?

typescript
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: Screenshot 2023-11-23 at 17 16 49

For now, afterEach hook doesn’t get into allure report, but what is interesting is that beforeEach hook works as expected. Screenshot 2023-11-23 at 17 04 18

What is your expected behavior?

Screenshot 2023-11-23 at 17 16 49

How to reproduce the bug.

You will see that beforeEach hook is present, but afterEach hook doesn’t.

Relevant log output

typescript
no need

Code 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