Trouble interacting with Bootstrap modals via Capybara (v2)

前端 未结 4 2108
无人及你
无人及你 2021-01-01 22:07

In a Rails application I\'m trying to test a Bootstrap modal with a jQuery TokenInput field in Rspec using Capybara with the capybara-webkit driver. The portion

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-01 22:42

    Try disabling animations in test env, layouts/application.html.erb

    <% if Rails.env.test? %>
     
    <%end%>
    

提交回复
热议问题