Skip to content

Commit

Permalink
Merge pull request #3 from ulferts/fix/sorting_on_wp_menu_items
Browse files Browse the repository at this point in the history
Fix/sorting on wp menu items
  • Loading branch information
floriank committed Jun 25, 2015
2 parents cd39d0e + 6a6207e commit 8a3109b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spec/features/support/ui_select.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@
# See doc/COPYRIGHT.rdoc for more details.
#++

require 'features/work_packages/details/inplace_editor/shared_contexts'

shared_context 'ui-select helpers' do
include_context 'maximized window'
def ui_select_choose(select2_element, option_name)
# Open the element
select2_element.find('.select2-choice').click
# Insert the text to find
select2_element.find('.select2-search input').set(option_name)
# click the element to select it
select2_element.find('ul.select2-result-single li', text: option_name).click
end
end

0 comments on commit 8a3109b

Please sign in to comment.