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:
Javi Martín
2024-10-15 16:10:59 +02:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -14,3 +14,7 @@
<noscript>
<%= stylesheet_link_tag "noscript" %>
</noscript>
<% if Rails.env.test? %>
<meta name="turbolinks-cache-control" content="no-preview">
<% end %>

View File

@@ -444,6 +444,7 @@ describe "Ballots" do
click_link "Go back"
expect(page).to have_current_path(budget_investments_path(budget, heading_id: new_york.id))
expect(page).to have_link "Check my votes"
end
scenario "before adding any investments" do
@@ -459,6 +460,7 @@ describe "Ballots" do
click_link "Go back"
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