Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #588 from duffyjp/master
Browse files Browse the repository at this point in the history
Fix bip_select by removing unsupported "Node#trigger" call
  • Loading branch information
seuros committed Sep 5, 2018
2 parents 1b779e6 + ca759aa commit bc00bb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/best_in_place/test_helpers.rb
Expand Up @@ -4,7 +4,7 @@ module TestHelpers

def bip_area(model, attr, new_value)
id = BestInPlace::Utils.build_best_in_place_id model, attr
find("##{id}").trigger('click')
find("##{id}").click
execute_script <<-JS
$("##{id} form textarea").val('#{escape_javascript new_value.to_s}');
$("##{id} form textarea").blur();
Expand All @@ -24,13 +24,13 @@ def bip_text(model, attr, new_value)

def bip_bool(model, attr)
id = BestInPlace::Utils.build_best_in_place_id model, attr
find("##{id}").trigger('click')
find("##{id}").click
wait_for_ajax
end

def bip_select(model, attr, name)
id = BestInPlace::Utils.build_best_in_place_id model, attr
find("##{id}").trigger('click')
find("##{id}").click
find("##{id}").select(name)
wait_for_ajax
end
Expand Down

0 comments on commit bc00bb7

Please sign in to comment.