`seeNumberOfElements()` doesn't count <input>s with Bootstrap's `.custom-control-input` class
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Tái hiện ví dụ radio tùy chỉnh của Bootstrap bằng seeNumberOfElements() và so sánh với seeNumberOfElementsInDOM(); sau đó tìm các phần triển khai của những phương thức này và cấu hình acceptance.suite.yml liên quan. Được coi là hoàn thành khi hành vi hiển thị mong muốn cho các phần tử .custom-control-input được định nghĩa và được kiểm thử bằng một regression test mà không làm ảnh hưởng đến số lượng phần tử thông thường.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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);
- Ngôn ngữ chính
- PHP
- Star
- 39
- Fork
- 25
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Codeception/module-webdriver
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Codeception/module-webdriver#151 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Codeception/module-webdriver#135 ·
-
Example of `executeAsyncJs()` Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 38/100
Codeception/module-webdriver#130 ·
-
Bug: `MalformedLocatorException` thrown for `id`s that don't start with a character (HTML 5) Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Codeception/module-webdriver#128 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
Codeception/module-webdriver#126 ·
Tất cả issue của Codeception/module-webdriver
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
Admissions heading updates Đang mởa11y admissions.uiowa.edu needs grooming SiteImprove best practice
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Save States Menu Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Error on exporting the error log Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
pluginsGLPI/datainjection#673 ·