1
0
Fork 0
mirror of https://github.com/teampoltergeist/poltergeist.git synced 2022-11-09 12:05:00 -05:00

Assert clicking on element outside viewport of parent element really works

This commit is contained in:
Gabriel Sobrinho 2012-07-09 14:52:10 -03:00
parent e38cafdbd7
commit 836b8efacc
2 changed files with 2 additions and 1 deletions

View file

@ -77,6 +77,7 @@ describe Capybara::Session do
it "scrolls into view" do
@session.click_link "Link outside viewport"
@session.current_path.should eq '/'
end
end

View file

@ -10,7 +10,7 @@
</div>
<p>
<a href="#">Link outside viewport</a>
<a href="/">Link outside viewport</a>
</p>
</div>
</body>