Move admin menu methods to the component

This way we finish what we started in commit 1046ec5e7, making the menu
easier to customize.
This commit is contained in:
Javi Martín
2023-01-05 16:01:50 +01:00
parent e3b3a8b87a
commit dbca3b5342
5 changed files with 192 additions and 138 deletions

View File

@@ -8,7 +8,7 @@ describe "Budgets wizard, groups step", :admin do
visit admin_budgets_wizard_budget_groups_path(budget)
within "#side_menu" do
expect(page).to have_css ".is-active", exact_text: "Participatory budgets"
expect(page).to have_css "[aria-current]", exact_text: "Participatory budgets"
end
expect(page).to have_content "Continue to headings"

View File

@@ -9,7 +9,7 @@ describe "Budgets wizard, headings step", :admin do
visit admin_budgets_wizard_budget_group_headings_path(budget, group)
within "#side_menu" do
expect(page).to have_css ".is-active", exact_text: "Participatory budgets"
expect(page).to have_css "[aria-current]", exact_text: "Participatory budgets"
end
click_link "Go back to groups"

View File

@@ -11,7 +11,7 @@ describe "Budgets wizard, phases step", :admin do
visit admin_budgets_wizard_budget_budget_phases_path(budget)
within "#side_menu" do
expect(page).to have_css ".is-active", exact_text: "Participatory budgets"
expect(page).to have_css "[aria-current]", exact_text: "Participatory budgets"
end
click_link "Go back to headings"