From ca759aab6e5ca270c982cbeaeaf165dbfa056d97 Mon Sep 17 00:00:00 2001 From: jpd800 Date: Tue, 15 Aug 2017 08:25:08 -0500 Subject: [PATCH] Change .trigger('click') to .click in the bip_area, bip_bool, and bip_select test helpers. --- lib/best_in_place/test_helpers.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/best_in_place/test_helpers.rb b/lib/best_in_place/test_helpers.rb index 04b87096..87298a92 100644 --- a/lib/best_in_place/test_helpers.rb +++ b/lib/best_in_place/test_helpers.rb @@ -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(); @@ -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