Replace back link on budget executions

This commit is contained in:
Alberto
2023-11-03 10:57:24 +01:00
parent ea38b6d6c5
commit f563fc0b24
2 changed files with 7 additions and 1 deletions

View File

@@ -15,7 +15,7 @@
<div class="expanded no-margin-top padding header">
<div class="row">
<div class="small-12 column">
<%= back_link_to budgets_path %>
<%= back_link_to budget_path(@budget) %>
<h2 class="margin-top">
<%= t("budgets.executions.heading") %><br>
<span><%= @budget.name %></span>

View File

@@ -76,6 +76,12 @@ describe "Executions" do
expect(page).to have_content("No winner investments in this state")
end
scenario "Back link redirects to budget page" do
visit budget_executions_path(budget)
expect(page).to have_link("Go back", href: budget_path(budget))
end
context "Images" do
scenario "renders milestone image if available" do
milestone1 = create(:milestone, :with_image, milestoneable: investment1)