Try to avoid poltergeist error on hover

This commit is contained in:
Amaia Castro
2017-01-20 19:21:14 +01:00
parent 4957ea2bf1
commit 7692fb9cb0

View File

@@ -517,7 +517,7 @@ feature 'Ballots' do
add_to_ballot(bi1)
within("#budget_investment_#{bi2.id}") do
find("div.ballot").hover
find("div.ballot").trigger("mouseover")
expect(page).to have_content('Price is higher than the available amount left')
expect(page).to have_selector('.in-favor a', visible: false)
end
@@ -594,4 +594,4 @@ feature 'Ballots' do
end
end
end
end
end