Temporarily hide OC selector in checkout page

This commit is contained in:
Matt-Yorkley
2020-03-20 09:30:33 +01:00
parent b1a274ea27
commit e8692fec4c
3 changed files with 5 additions and 4 deletions

View File

@@ -15,7 +15,7 @@
%strong
= pickup_time current_order_cycle
= render partial: "shopping_shared/header"
= render partial: "shopping_shared/header", locals: { hide_oc_selector: true }
%accordion{"close-others" => "false"}
%checkout.row{"ng-controller" => "CheckoutCtrl"}

View File

@@ -10,5 +10,6 @@
= distributor.name
%location= distributor.address.city
.show-for-large-up.large-4.columns
= render partial: "shopping_shared/order_cycles"
- unless defined? hide_oc_selector
.show-for-large-up.large-4.columns
= render partial: "shopping_shared/order_cycles"

View File

@@ -53,7 +53,7 @@ feature "Using embedded shopfront functionality", js: true do
expect(page).to have_text 'Your shopping cart'
find('a#checkout-link').click
expect(page).to have_text 'Checkout now'
expect(page).to have_text 'Ok, ready to checkout?'
click_button 'Login'
login_with_modal