diff --git a/spec/components/budgets/investments/votes_component_spec.rb b/spec/components/budgets/investments/votes_component_spec.rb index 6a3e6ab98..888d41ef5 100644 --- a/spec/components/budgets/investments/votes_component_spec.rb +++ b/spec/components/budgets/investments/votes_component_spec.rb @@ -16,7 +16,7 @@ describe Budgets::Investments::VotesComponent, type: :component do render_inline component expect(page).to have_link count: 1 - expect(page).to have_link "Support" + expect(page).to have_link "Support", title: "Support this project" expect(page).to have_link "Support Renovate sidewalks in Main Street" end diff --git a/spec/system/budgets/votes_spec.rb b/spec/system/budgets/votes_spec.rb index a53b58438..8c5e64137 100644 --- a/spec/system/budgets/votes_spec.rb +++ b/spec/system/budgets/votes_spec.rb @@ -42,7 +42,7 @@ describe "Votes" do visit budget_investments_path(budget, heading_id: heading.id) within(".supports") do - click_link "Support this project" + click_link "Support" expect(page).to have_content "1 support" expect(page).to have_content "You have already supported this investment project. "\