diff --git a/app/components/budgets/subheader_component.html.erb b/app/components/budgets/subheader_component.html.erb index 1f69d1d59..6e97da27a 100644 --- a/app/components/budgets/subheader_component.html.erb +++ b/app/components/budgets/subheader_component.html.erb @@ -1,6 +1,6 @@
- <%= t("budgets.show.phase") %> + <%= t("budgets.index.current_phase") %>

<%= budget.current_phase.name %>

diff --git a/config/locales/en/budgets.yml b/config/locales/en/budgets.yml index 62b52a841..e653cfdd7 100644 --- a/config/locales/en/budgets.yml +++ b/config/locales/en/budgets.yml @@ -178,7 +178,6 @@ en: other: "You have selected %{count} projects out of %{limit}" show: group: Group - phase: Actual phase unfeasible_title: Unfeasible investments unfeasible: See unfeasible investments unselected_title: Investments not selected for balloting phase diff --git a/config/locales/es/budgets.yml b/config/locales/es/budgets.yml index aa85536fb..34f06c306 100644 --- a/config/locales/es/budgets.yml +++ b/config/locales/es/budgets.yml @@ -178,7 +178,6 @@ es: other: "Has seleccionado %{count} proyectos de %{limit}" show: group: Grupo - phase: Fase actual unfeasible_title: Proyectos de gasto inviables unfeasible: Ver los proyectos inviables unselected_title: Proyectos no seleccionados para la votación final diff --git a/spec/system/budgets/budgets_spec.rb b/spec/system/budgets/budgets_spec.rb index f8e89a62a..f3e0ba3a2 100644 --- a/spec/system/budgets/budgets_spec.rb +++ b/spec/system/budgets/budgets_spec.rb @@ -44,8 +44,10 @@ describe "Budgets" do expect(page).to have_link("Help with participatory budgets") end - expect(page).to have_content("Actual phase") - expect(page).to have_content("Information") + within(".budget-subheader") do + expect(page).to have_content "Current phase" + expect(page).to have_content "Information" + end budget.update!(phase: "publishing_prices") visit budgets_path