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