codeceptjs / codeceptjs/CodeceptJS

For an assertion failures for the steps I.see or I.dontSee methods assertion error messages are not able to capture as it's not available in test object in hook method _failure(test)

未关闭
#4,464 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
stale
主要语言
JavaScript
星标
4.2k
派生
757
平均合并
2 天 9 小时
30 天内合并 PR
16

描述

#### What are you trying to achieve?
For an assertion failures for the steps I.see or I.dontSee methods assertion error messages should be able to capture

#### What do you get instead?
Not able to capture the error message as the same is not available in test object in hook method _failure(test).
Screenshot 2024-08-21 at 11 27 11 AM

Hence not able to capture assertion failure message in Allure report:
Screenshot 2024-08-21 at 11 30 13 AM

> Provide console output if related. Use `--verbose` mode for more details.

```bash
# paste output here
```

> Provide test source code if related

```js
// paste test
```

### Details

* CodeceptJS version: 3.6.4
* NodeJS Version: 20
* Operating System: MacOS
* Playwright
* Configuration file:

```js
# paste config here
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。