diff --git a/spec/integration/js_spec.rb b/spec/integration/js_spec.rb index 8eaef59c..e773108f 100644 --- a/spec/integration/js_spec.rb +++ b/spec/integration/js_spec.rb @@ -466,11 +466,15 @@ bip_text @user, :address, "New address" + sleep 1 + id = BestInPlace::Utils.build_best_in_place_id @user, :address page.execute_script <<-JS $("##{id}").click(); JS + sleep 1 + text = page.find("##{id} input").value text.should == "New address" end @@ -547,11 +551,15 @@ bip_text @user, :money, "40" + sleep 1 + id = BestInPlace::Utils.build_best_in_place_id @user, :money page.execute_script <<-JS $("##{id}").click(); JS + sleep 1 + text = page.find("##{id} input").value text.should == "40" end