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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user