Merge pull request #5747 from consuldemocracy/disable_turbolinks_previews_in_tests
Make sure requests finish in ballots back link tests
This commit is contained in:
@@ -14,3 +14,7 @@
|
|||||||
<noscript>
|
<noscript>
|
||||||
<%= stylesheet_link_tag "noscript" %>
|
<%= stylesheet_link_tag "noscript" %>
|
||||||
</noscript>
|
</noscript>
|
||||||
|
|
||||||
|
<% if Rails.env.test? %>
|
||||||
|
<meta name="turbolinks-cache-control" content="no-preview">
|
||||||
|
<% end %>
|
||||||
|
|||||||
@@ -444,6 +444,7 @@ describe "Ballots" do
|
|||||||
click_link "Go back"
|
click_link "Go back"
|
||||||
|
|
||||||
expect(page).to have_current_path(budget_investments_path(budget, heading_id: new_york.id))
|
expect(page).to have_current_path(budget_investments_path(budget, heading_id: new_york.id))
|
||||||
|
expect(page).to have_link "Check my votes"
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario "before adding any investments" do
|
scenario "before adding any investments" do
|
||||||
@@ -459,6 +460,7 @@ describe "Ballots" do
|
|||||||
click_link "Go back"
|
click_link "Go back"
|
||||||
|
|
||||||
expect(page).to have_current_path(budget_investments_path(budget, heading_id: new_york.id))
|
expect(page).to have_current_path(budget_investments_path(budget, heading_id: new_york.id))
|
||||||
|
expect(page).to have_link "Check my votes"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user