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