codeceptjs / codeceptjs/CodeceptJS

Add or more prominently link to documentation for `step.retry()`

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

描述

During normal usage of `codeceptjs@3.7.2` I see the following repeated warning:

```
I.retry() is deprecated, use step.retry() instead
```

This comes from [here](https://github.com/codeceptjs/CodeceptJS/blob/df7e0beac13fa59167162034adf3859fdb7be335/lib/actor.js#L61), naturally.

Unfortunately I am unable to find any documentation of what `step.retry()` is or how to use it?

![Image](https://github.com/user-attachments/assets/b032ff98-b1bd-4916-a28e-5d0571406937)

and

![Image](https://github.com/user-attachments/assets/48c6ff0e-edfa-4a5b-8de8-691f37852cb1)

The [documentation for retrying](https://codecept.io/basics/#retries) still uses `I.retry()` throughout:

![Image](https://github.com/user-attachments/assets/724fc1af-096c-4e60-ba76-37321b504d53)

Could you please add documentation for `step.retry()`, or if the documentation exists, could you please make it easier to find.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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