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
it "waits for an element to appear in the viewport when clicked" do
subject.visit('/')
subject.execute_script <<-JS
setTimeout(function() {
var offscreen = document.getElementById('offscreen')