From 3bf36f0e5551482b2c7115a22ba0f7a6410018b2 Mon Sep 17 00:00:00 2001 From: Rob H Date: Thu, 30 Jan 2014 14:06:32 +0800 Subject: [PATCH] Fix orders specs which fail because of new admin orders submenu --- spec/features/admin/orders_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/features/admin/orders_spec.rb b/spec/features/admin/orders_spec.rb index 659a970df0..3b8888bd50 100644 --- a/spec/features/admin/orders_spec.rb +++ b/spec/features/admin/orders_spec.rb @@ -24,7 +24,7 @@ feature %q{ login_to_admin_section - click_link 'Orders' + visit '/admin/orders' click_link 'New Order' page.should have_content 'ADD PRODUCT' @@ -45,7 +45,7 @@ feature %q{ scenario "can't change distributor or order cycle once order has been finalized" do login_to_admin_section - click_link 'Orders' + visit '/admin/orders' page.find('td.actions a.icon-edit').click page.should have_no_select 'order_distributor_id' @@ -60,7 +60,7 @@ feature %q{ login_to_admin_section - click_link 'Orders' + visit '/admin/orders' current_path.should == spree.admin_orders_path # click the 'capture' link for the order @@ -98,7 +98,7 @@ feature %q{ end scenario "creating an order with distributor and order cycle", js: true do - click_link 'Orders' + visit '/admin/orders' click_link 'New Order' page.should have_content 'ADD PRODUCT'