fix spec that was wrongly passing before

This commit is contained in:
Jon Rowe 2013-08-11 18:24:05 +01:00
parent 8379f4a6c0
commit f0282ca61f
1 changed files with 1 additions and 0 deletions

View File

@ -467,6 +467,7 @@ describe Capybara::Session do
end end
it "waits for an element to appear in the viewport when clicked" do it "waits for an element to appear in the viewport when clicked" do
subject.visit('/')
subject.execute_script <<-JS subject.execute_script <<-JS
setTimeout(function() { setTimeout(function() {
var offscreen = document.getElementById('offscreen') var offscreen = document.getElementById('offscreen')