Skip to content

Commit

Permalink
Don't use select2 for offscreen elements
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Nov 23, 2015
1 parent 7d81558 commit 7c31909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/spree/testing_support/capybara_ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def select2_search(value, options)
end

def select2_search_without_selection(value, options)
find("#{options[:from]}:not(.select2-container-disabled)").click
find("#{options[:from]}:not(.select2-container-disabled):not(.select2-offscreen)").click

within_entire_page do
find("input.select2-input.select2-focused").set(value)
Expand Down

0 comments on commit 7c31909

Please sign in to comment.