diff --git a/spec/features/edit_page_spec.rb b/spec/features/edit_page_spec.rb index d391daa829..da5695fb28 100644 --- a/spec/features/edit_page_spec.rb +++ b/spec/features/edit_page_spec.rb @@ -40,7 +40,10 @@ customer = create(:customer, kind: :standard) visit edit_admin_customer_path(customer) - select "vip", from: "Kind" + + find(".selectize-input #customer_kind-selectized").click() + find(:xpath, "//div[@data-selectable and contains(., 'vip')]").click #wait for the input and then click on it + click_on "Update Customer" expect(page).to have_text("KIND")