Improve message to submit ballot
This commit is contained in:
@@ -165,10 +165,10 @@ en:
|
|||||||
zero: No supports
|
zero: No supports
|
||||||
give_support: Support
|
give_support: Support
|
||||||
header:
|
header:
|
||||||
check_ballot: Check and confirm my ballot
|
check_ballot: "Submit my ballot"
|
||||||
different_heading_assigned: "You have active votes in another heading: %{heading_link}"
|
different_heading_assigned: "You have active votes in another heading: %{heading_link}"
|
||||||
change_ballot: "If your change your mind you can remove your votes in %{check_ballot} and start again."
|
change_ballot: "If your change your mind you can remove your votes in %{check_ballot} and start again."
|
||||||
check_ballot_link: "check and confirm my ballot"
|
check_ballot_link: "submit my ballot"
|
||||||
price: "This heading has a budget of"
|
price: "This heading has a budget of"
|
||||||
progress_bar:
|
progress_bar:
|
||||||
assigned: "You have assigned: "
|
assigned: "You have assigned: "
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ describe "Ballots" do
|
|||||||
within("#sidebar") do
|
within("#sidebar") do
|
||||||
expect(page).to have_content "Bring back King Kong"
|
expect(page).to have_content "Bring back King Kong"
|
||||||
expect(page).to have_content "€10,000"
|
expect(page).to have_content "€10,000"
|
||||||
expect(page).to have_link("Check and confirm my ballot")
|
expect(page).to have_link "Submit my ballot"
|
||||||
end
|
end
|
||||||
|
|
||||||
add_to_ballot("Paint cabs black")
|
add_to_ballot("Paint cabs black")
|
||||||
@@ -142,7 +142,7 @@ describe "Ballots" do
|
|||||||
within("#sidebar") do
|
within("#sidebar") do
|
||||||
expect(page).to have_content "Paint cabs black"
|
expect(page).to have_content "Paint cabs black"
|
||||||
expect(page).to have_content "€20,000"
|
expect(page).to have_content "€20,000"
|
||||||
expect(page).to have_link("Check and confirm my ballot")
|
expect(page).to have_link "Submit my ballot"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -158,7 +158,7 @@ describe "Ballots" do
|
|||||||
within("#sidebar") do
|
within("#sidebar") do
|
||||||
expect(page).to have_content investment.title
|
expect(page).to have_content investment.title
|
||||||
expect(page).to have_content "€10,000"
|
expect(page).to have_content "€10,000"
|
||||||
expect(page).to have_link("Check and confirm my ballot")
|
expect(page).to have_link "Submit my ballot"
|
||||||
end
|
end
|
||||||
|
|
||||||
within("#budget_investment_#{investment.id}") do
|
within("#budget_investment_#{investment.id}") do
|
||||||
@@ -171,7 +171,7 @@ describe "Ballots" do
|
|||||||
within("#sidebar") do
|
within("#sidebar") do
|
||||||
expect(page).not_to have_content investment.title
|
expect(page).not_to have_content investment.title
|
||||||
expect(page).not_to have_content "€10,000"
|
expect(page).not_to have_content "€10,000"
|
||||||
expect(page).to have_link("Check and confirm my ballot")
|
expect(page).to have_link "Submit my ballot"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -431,7 +431,7 @@ describe "Ballots" do
|
|||||||
add_to_ballot("Sully monument")
|
add_to_ballot("Sully monument")
|
||||||
|
|
||||||
within(".budget-heading") do
|
within(".budget-heading") do
|
||||||
click_link "Check and confirm my ballot"
|
click_link "Submit my ballot"
|
||||||
end
|
end
|
||||||
|
|
||||||
expect(page).to have_content("You have voted one investment")
|
expect(page).to have_content("You have voted one investment")
|
||||||
@@ -452,7 +452,7 @@ describe "Ballots" do
|
|||||||
visit budget_investments_path(budget, heading_id: new_york.id)
|
visit budget_investments_path(budget, heading_id: new_york.id)
|
||||||
|
|
||||||
within(".budget-heading") do
|
within(".budget-heading") do
|
||||||
click_link "Check and confirm my ballot"
|
click_link "Submit my ballot"
|
||||||
end
|
end
|
||||||
|
|
||||||
expect(page).to have_content("You have voted 0 investments")
|
expect(page).to have_content("You have voted 0 investments")
|
||||||
|
|||||||
@@ -692,12 +692,12 @@ describe "Budget Investments" do
|
|||||||
|
|
||||||
visit budget_investments_path(budget, heading_id: heading.id)
|
visit budget_investments_path(budget, heading_id: heading.id)
|
||||||
|
|
||||||
expect(page).not_to have_link("Check and confirm my ballot")
|
expect(page).not_to have_link("Submit my ballot")
|
||||||
expect(page).not_to have_css("#progress_bar")
|
expect(page).not_to have_css("#progress_bar")
|
||||||
|
|
||||||
within("#sidebar") do
|
within("#sidebar") do
|
||||||
expect(page).not_to have_content("My ballot")
|
expect(page).not_to have_content("My ballot")
|
||||||
expect(page).not_to have_link("Check and confirm my ballot")
|
expect(page).not_to have_link("Submit my ballot")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -1332,12 +1332,12 @@ describe "Budget Investments" do
|
|||||||
|
|
||||||
visit budget_investments_path(budget, heading_id: heading.id)
|
visit budget_investments_path(budget, heading_id: heading.id)
|
||||||
|
|
||||||
expect(page).to have_link("Check and confirm my ballot")
|
expect(page).to have_link("Submit my ballot")
|
||||||
expect(page).to have_css("#progress_bar")
|
expect(page).to have_css("#progress_bar")
|
||||||
|
|
||||||
within("#sidebar") do
|
within("#sidebar") do
|
||||||
expect(page).to have_content("My ballot")
|
expect(page).to have_content("My ballot")
|
||||||
expect(page).to have_link("Check and confirm my ballot")
|
expect(page).to have_link("Submit my ballot")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user