Commit 9b1bfcc3 authored by Nicholas Hippenmeyer's avatar Nicholas Hippenmeyer
Browse files

Call .selectize() on all select fields

1 merge request!2180Call .selectize() on all select fields
Pipeline #1268 failed with stages
Showing with 3 additions and 4 deletions
+3 -4
$(function() {
$('.field-unit--belongs-to select').selectize({});
$(".field-unit--has-many select").selectize({});
$('.field-unit--polymorphic select').selectize({});
$('.field-unit select').selectize({});
});
......@@ -40,7 +40,8 @@ describe "customer edit page" do
customer = create(:customer, kind: :standard)
visit edit_admin_customer_path(customer)
select "vip", from: "Kind"
find("#customer_kind-selectized").click
find(".option", text: "vip").click
click_on "Update Customer"
expect(page).to have_text("KIND")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment