codeceptjs / codeceptjs/CodeceptJS

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

Open
#4,958 10 comments 2 reactions 0 assignees View on GitHub
stale
Dominant language
JavaScript
Stars
4.2k
Forks
757
Avg merge
2d 9h
Merged PRs (30d)
16

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.