mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Adding link to standing orders index to orders sub-menu
This commit is contained in:
@@ -2,5 +2,6 @@
|
||||
<ul id="sub_nav" data-hook="admin_order_sub_tabs" class="inline-menu">
|
||||
<%= tab :orders, :match_path => '/orders' %>
|
||||
<%= tab :bulk_order_management, :match_path => '/orders/bulk_management' %>
|
||||
<%= tab :standing_orders, :match_path => '/standing_orders', url: main_app.admin_standing_orders_path %>
|
||||
</ul>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -18,7 +18,9 @@ feature 'Standing Orders' do
|
||||
let!(:standing_order_unmanaged) { create(:standing_order, shop: shop_unmanaged) }
|
||||
|
||||
it "passes the smoke test" do
|
||||
visit admin_standing_orders_path
|
||||
visit spree.admin_path
|
||||
click_link 'Orders'
|
||||
click_link 'Standing Orders'
|
||||
|
||||
expect(page).to have_select2 "shop_id", with_options: [shop.name, shop2.name], without_options: [shop_unmanaged.name]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user