Adding link to standing orders index to orders sub-menu

This commit is contained in:
Rob Harrington
2016-11-23 10:24:47 +11:00
parent c3e071b0d1
commit 0f2adaa8d2
2 changed files with 5 additions and 2 deletions

View File

@@ -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 %>

View File

@@ -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]