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 摘要。