mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Merge pull request #4979 from Matt-Yorkley/3-0-customer-details
[Spree 2.1] Customer details
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
- content_for :page_actions do
|
||||
%li= button_link_to Spree.t(:back_to_orders_list), admin_orders_path, :icon => 'icon-arrow-left'
|
||||
|
||||
- if @order.cart?
|
||||
- if @order.cart? || @order.address?
|
||||
#select-customer{"data-hook" => ""}
|
||||
%fieldset.no-border-bottom
|
||||
%legend{:align => "center"}= Spree.t(:customer_search)
|
||||
|
||||
@@ -169,6 +169,9 @@ feature '
|
||||
|
||||
expect(page).to have_selector 'h1.page-title', text: "Customer Details"
|
||||
|
||||
# The customer selection partial should be visible
|
||||
expect(page).to have_selector '#select-customer'
|
||||
|
||||
# And I select that customer's email address and save the order
|
||||
targetted_select2_search @customer.email, from: '#customer_search_override', dropdown_css: '.select2-drop'
|
||||
click_button 'Update'
|
||||
|
||||
Reference in New Issue
Block a user