codeceptjs / codeceptjs/CodeceptJS

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

オープン
#5,130 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
stale
主要言語
JavaScript
スター
4.2k
フォーク
757
平均マージ
2日 9時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。