From 7692fb9cb082c318f5e2e2dab51fdb7f0aa0c648 Mon Sep 17 00:00:00 2001 From: Amaia Castro Date: Fri, 20 Jan 2017 19:21:14 +0100 Subject: [PATCH] Try to avoid poltergeist error on hover --- spec/features/budgets/ballots_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/budgets/ballots_spec.rb b/spec/features/budgets/ballots_spec.rb index 3a78cd61b..c80ec55f4 100644 --- a/spec/features/budgets/ballots_spec.rb +++ b/spec/features/budgets/ballots_spec.rb @@ -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 \ No newline at end of file +end