From 4589ba5f0bdb828ecf4ab522335c998b1b10371f Mon Sep 17 00:00:00 2001 From: kikito Date: Fri, 23 Dec 2016 18:34:42 +0100 Subject: [PATCH] Fixes incorrect implementation of add_to_ballot common action --- spec/support/common_actions.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/support/common_actions.rb b/spec/support/common_actions.rb index e6529c557..8eaf5782f 100644 --- a/spec/support/common_actions.rb +++ b/spec/support/common_actions.rb @@ -278,7 +278,9 @@ module CommonActions def add_to_ballot(budget_investment) within("#budget_investment_#{budget_investment.id}") do - click_link "Spend money on this"#find('.add a').trigger('click') + find('.add a').trigger('click') + expect(page).to have_content "Remove" end end + end