diff --git a/spec/system/admin/order_spec.rb b/spec/system/admin/order_spec.rb index 04de77922a..cd4c8b9aec 100644 --- a/spec/system/admin/order_spec.rb +++ b/spec/system/admin/order_spec.rb @@ -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'