`seeNumberOfElements()` doesn't count <input>s with Bootstrap's `.custom-control-input` class
まだ誰も着手していません。
評価
調査の方向性
seeNumberOfElements() を使用して Bootstrap のカスタムラジオの例を再現し、seeNumberOfElementsInDOM() と比較します。次に、これらのメソッドの実装と、関連する acceptance.suite.yml の設定を見つけます。.custom-control-input 要素に対する意図した可視性の動作が定義され、通常の要素数を壊さずに回帰テストでカバーされていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Next problem with Bootstrap custom radio button after https://github.com/Codeception/module-webdriver/issues/21
seeNumberOfElements() doesn't count those radiobuttons:
<input type="radio" class="custom-control-input">
This is probably because of z-index:-1 in Bootstrap's CSS:
.custom-control-input{position:absolute;left:0;z-index:-1;width:1rem;height:1.22rem;opacity:0}
Background: When using Bootstrap's custom radiobuttons, the standard browser widget is replaced by some other widget (SVG?) for nicer graphics.
I'm filing this here mainly to see if somebody else encounters it. A possible solution could be to set a configuration parameter in acceptance.suite.yml to switch the concerned methods' behavior to be compatible with Bootstrap.
In my case I can't look at the page's source code (what I'm guessing that e.g. seeNumberOfElementsInDOM() is doing), since I'm showing/hiding some radiobuttons with JavaScript, and I need to assert their visibility. My workaround: Count the labels instead:
$I->seeNumberOfElements(['css' => 'div#foobar label'], 7);
- 主要言語
- PHP
- スター
- 39
- フォーク
- 23
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Codeception/module-webdriver のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
Codeception/module-webdriver#151 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
Codeception/module-webdriver#135 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 38/100
Codeception/module-webdriver#130 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
Codeception/module-webdriver#128 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
Codeception/module-webdriver#126 ·
Codeception/module-webdriver の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
taskforcesh/bullmq#5238 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] v-change-database-password reports success but doesn't change the password when MySQL validate_password rejects it対応中かも @bfs2021 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Automattic/jetpack#55517 ·
メンテナーはふだん 1 日以内に返信
-
Major
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
PrestaShop/ps_onepagecheckout#245 ·
メンテナーはふだん 1 日以内に返信
-
wpvc
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
10up/ElasticPress#4420 ·
メンテナーはふだん 1 日以内に返信