Merge pull request #4979 from Matt-Yorkley/3-0-customer-details

[Spree 2.1] Customer details
This commit is contained in:
Luis Ramos
2020-03-21 13:26:09 +00:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

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

View File

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