Fixes randomly-failing travis specs

The problem was that after changing page with the selects, capybara
needs to “find something which has changed on the page” in order to
“wait”. The “have_selects” did not wait because they did not change
(you change them, then the page changes, and they stay the same)
This commit is contained in:
kikito
2015-09-04 17:44:32 +02:00
parent d62b30c487
commit 55c48e3719
2 changed files with 7 additions and 16 deletions

View File

@@ -38,7 +38,7 @@
</div>
<div class="row">
<div id="debates" class="debates-list small-12 medium-9 column">
<div id="debates" class="debates-list small-12 medium-9 column js-order-<%= @order.dasherize %>">
<%= render @debates %>
<%= paginate @debates %>
</div>