Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make tests more resilient to timing issues.

This tackles Issue #87 when running tests via X11 forwarding (or Xvfb).
  • Loading branch information...
commit 8a601b38ab1a4b411bbc6929d0f93d82fbbce083 1 parent 4394c5a
Diego Elio Pettenò authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 spec/integration/js_spec.rb
8 spec/integration/js_spec.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.