Skip to content

Commit

Permalink
update rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
jubilee2 committed Aug 19, 2022
1 parent 8ddf7be commit 2b28af4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/features/edit_page_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 2b28af4

Please sign in to comment.