Add link to preview budget on budgets table
This commit is contained in:
@@ -11,11 +11,12 @@ describe Admin::Budgets::TableActionsComponent, type: :component do
|
||||
it "renders links to edit budget, manage investments and edit groups and manage ballots" do
|
||||
render_inline component
|
||||
|
||||
expect(page).to have_css "a", count: 4
|
||||
expect(page).to have_css "a", count: 5
|
||||
expect(page).to have_link "Manage projects", href: /investments/
|
||||
expect(page).to have_link "Edit headings groups", href: /groups/
|
||||
expect(page).to have_link "Edit budget", href: /edit/
|
||||
expect(page).to have_link "Admin ballots"
|
||||
expect(page).to have_link "Preview budget", href: /budgets/
|
||||
end
|
||||
|
||||
it "renders link to create new poll for budgets without polls" do
|
||||
|
||||
Reference in New Issue
Block a user