fix spec that was wrongly passing before
This commit is contained in:
parent
8379f4a6c0
commit
f0282ca61f
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue