From a355a09a7cda2eb5a72ac59ea5d6e789bcd52843 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Mon, 17 Jun 2013 11:45:23 +1000 Subject: [PATCH] Disable distributor change in checkout until it takes order cycles into account --- ...add_change_distributor_form_to_checkout_address.rb | 11 ++++++----- spec/features/consumer/checkout_spec.rb | 5 +++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/app/overrides/add_change_distributor_form_to_checkout_address.rb b/app/overrides/add_change_distributor_form_to_checkout_address.rb index 8dd5a7f090..19b91d2b1f 100644 --- a/app/overrides/add_change_distributor_form_to_checkout_address.rb +++ b/app/overrides/add_change_distributor_form_to_checkout_address.rb @@ -1,5 +1,6 @@ -Deface::Override.new(:virtual_path => "spree/checkout/edit", - :insert_after => "[data-hook='checkout_summary_box']", - :partial => "spree/checkout/other_available_distributors", - :name => "add_change_distributor_form_to_checkout_address", - :original => '60b9b1a39079f4efa85ff0425108edf671349d4f') \ No newline at end of file +# Disabled until this form takes order cycles into account +# Deface::Override.new(:virtual_path => "spree/checkout/edit", +# :insert_after => "[data-hook='checkout_summary_box']", +# :partial => "spree/checkout/other_available_distributors", +# :name => "add_change_distributor_form_to_checkout_address", +# :original => '60b9b1a39079f4efa85ff0425108edf671349d4f') diff --git a/spec/features/consumer/checkout_spec.rb b/spec/features/consumer/checkout_spec.rb index 24dae83677..3d05af7593 100644 --- a/spec/features/consumer/checkout_spec.rb +++ b/spec/features/consumer/checkout_spec.rb @@ -131,8 +131,9 @@ feature %q{ page.should have_content value end end - - page.should have_selector "select#order_distributor_id option[value='#{@distributor_alternative.id}']" + + # Disabled until this form takes order cycles into account + # page.should have_selector "select#order_distributor_id option[value='#{@distributor_alternative.id}']" click_button 'Save and Continue'