codeceptjs / codeceptjs/CodeceptJS

Using `step.retry()` with I.selectOption throws an error.

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

描述

### 🐛 Bug Report

#### Description
Using `step.retry()` with `I.selectOption` throws an error.
According to the documentation ([Step Options](https://codecept.io/changelog/?#%F0%9F%A5%BE-step-options)), this works with `I.click`, but it doesn’t seem to work with `I.selectOption`.

Also, I noticed that `I.retry()` is deprecated, so I am unsure what the recommended way is to apply retries with `selectOption`.

---

#### 🔄 Steps to Reproduce
```js
Scenario('some test', async ({ I }) => {
I.click('something', step.retry(2));
I.selectOption('Username', 'user1', step.retry(2)); // throws error
});
```

Image

Version: 3.7.4

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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