Adds .js-class for specs

This commit is contained in:
kikito
2016-12-05 17:33:20 +01:00
parent 2ced3e91d6
commit 83fe74d530
2 changed files with 3 additions and 3 deletions

View File

@@ -8,7 +8,7 @@
<%= t("budget.investments.investment.supports", count: investment.total_votes) %> <%= t("budget.investments.investment.supports", count: investment.total_votes) %>
</span> </span>
<div class="in-favor"> <div class="in-favor js-in-favor">
<% if user_voted_for %> <% if user_voted_for %>
<div class="supported"> <div class="supported">
<%= t("budget.investments.investment.already_supported") %> <%= t("budget.investments.investment.already_supported") %>

View File

@@ -143,7 +143,7 @@ feature 'Budget Investments' do
click_link "Support Budget Investments" click_link "Support Budget Investments"
within("#budget-investments") do within("#budget-investments") do
find('.in-favor a').click find('.js-in-favor a').click
expect(page).to have_content "1 support" expect(page).to have_content "1 support"
expect(page).to have_content "You have already supported this. Share it!" expect(page).to have_content "You have already supported this. Share it!"
@@ -163,7 +163,7 @@ feature 'Budget Investments' do
click_link budget_investment.title click_link budget_investment.title
end end
find('.in-favor a').click find('.js-in-favor a').click
expect(page).to have_content "1 support" expect(page).to have_content "1 support"
expect(page).to have_content "You have already supported this. Share it!" expect(page).to have_content "You have already supported this. Share it!"
expect(current_path).to eq(management_budgets_investment_path(budget_investment)) expect(current_path).to eq(management_budgets_investment_path(budget_investment))