`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
- フォーク
- 25
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- 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時間 初心者へのやさしさ 85/100
-
a11y admissions.uiowa.edu needs grooming SiteImprove best practice
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
Save States Menu オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
pluginsGLPI/datainjection#673 ·