在我看來,我有一個複選框水豚have_selector不工作
<input type="checkbox" id="modal-checkbox" class="painter-modal-checkbox" data-reactid=".1.1:1.0.0">
在我的水豚的代碼,我試圖用have_selector方法
expect(page).to have_selector("#modal-checkbox")
這個失敗,當我跟蹤頁面與
print page.html
我可以證實,我的html代碼是存在的, 爲什麼會出現這種TES t失敗。
請發佈完整的測試代碼和錯誤日誌。 –