Fix condition to show the "see results" link

This condition was obsolete since we introduced the `results_enabled`
field in commit 4f4dc2c2a.
This commit is contained in:
Javi Martín
2021-08-30 17:28:18 +02:00
parent 0a14337580
commit 7d818e24ca
11 changed files with 100 additions and 6 deletions

View File

@@ -351,6 +351,14 @@ describe "Admin budgets", :admin do
visit admin_budget_path(budget)
expect(page).not_to have_link "See results"
click_link "Edit budget"
select "Finished budget", from: "Active phase"
check "Show results"
click_button "Update Budget"
expect(page).to have_content "Participatory budget updated successfully"
expect(page).to have_link "See results"
end