mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Updates selector
This commit is contained in:
committed by
David Cook
parent
8b036e5108
commit
2c3778360b
@@ -125,7 +125,7 @@ RSpec.describe '
|
||||
it "sets the customer on the order" do
|
||||
expect(order.customer_id).to be_nil
|
||||
|
||||
tomselect_search_and_select customer2.email, from: 'customer_search_override'
|
||||
tomselect_search_and_select customer2.email, from: 'select-customer'
|
||||
check 'order_use_billing'
|
||||
|
||||
trigger_click(:button, 'Update')
|
||||
@@ -148,7 +148,7 @@ RSpec.describe '
|
||||
|
||||
it "should update the order customer (not only its details)" do
|
||||
expect(page).to have_field 'order_email', with: customer2.email
|
||||
tomselect_search_and_select customer3.email, from: 'customer_search_override'
|
||||
tomselect_search_and_select customer3.email, from: 'select-customer'
|
||||
check 'order_use_billing'
|
||||
|
||||
expect(page).to have_field 'order_email', with: customer3.email
|
||||
@@ -513,7 +513,7 @@ RSpec.describe '
|
||||
expect(page).to have_selector '#select-customer'
|
||||
|
||||
# And I select that customer's email address and save the order
|
||||
tomselect_search_and_select customer.email, from: 'customer_search_override'
|
||||
tomselect_search_and_select customer.email, from: 'select-customer'
|
||||
expect(page).to have_field "order_email", with: customer.email
|
||||
click_button 'Update'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user