Groups and headings CRUD from budget view
Before, users needed to navigate to the list of groups in order to add, edit or delete a group. Also, they need to navigate to the list of groups first, and then to the list of headings for that group in order to add, edit or delete a heading. Now, it's possible to do all these actions for any group or heading from the participatory budget view to bring simplicity and to reduce the number of clicks from a user perspective. Co-Authored-By: Javi Martín <javim@elretirao.net>
This commit is contained in:
committed by
Javi Martín
parent
c8827f5c7f
commit
2b709f1a36
@@ -4,12 +4,11 @@ describe Admin::Budgets::TableActionsComponent, controller: Admin::BaseControlle
|
||||
let(:budget) { create(:budget) }
|
||||
let(:component) { Admin::Budgets::TableActionsComponent.new(budget) }
|
||||
|
||||
it "renders actions to edit and delete budget, manage investments and edit groups and manage ballots" do
|
||||
it "renders actions to edit and delete budget, manage investments and manage ballots" do
|
||||
render_inline component
|
||||
|
||||
expect(page).to have_link count: 4
|
||||
expect(page).to have_link count: 3
|
||||
expect(page).to have_link "Investment projects", href: /investments/
|
||||
expect(page).to have_link "Heading groups", href: /groups/
|
||||
expect(page).to have_link "Edit", href: /#{budget.id}\Z/
|
||||
expect(page).to have_link "Preview", href: /budgets/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user