Add missing expectations in investments test

We ended the test with two requests and no expectations. Debugging shows
sometimes the test was hanging forever [1], probably due to simultaenous
requests.

So now we're adding expectations after each request.

[1] https://github.com/consul/consul/runs/3687898744
This commit is contained in:
Javi Martín
2021-09-23 17:09:55 +02:00
parent 9e85d29ee2
commit 4f314bf6ff

View File

@@ -1128,7 +1128,12 @@ describe "Budget Investments" do
accept_confirm { click_link("Delete") }
end
expect(page).to have_content "Investment project deleted succesfully"
visit user_path(user, tab: :budget_investments)
expect(page).to have_content "User has no public activity"
expect(page).not_to have_content investment1.title
end
end