1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Test return with a link thats still valid after the click

This commit is contained in:
Thomas Walpole 2016-10-28 14:59:36 -07:00
parent 54d7c0c9bb
commit d00fc2875c

View file

@ -112,7 +112,7 @@ Capybara::SpecHelper.spec '#click_link_or_button' do
it "should return the element clicked" do
@session.visit('/with_html')
link = @session.find(:link, 'labore')
expect(@session.click_link_or_button('labore')).to eq link
link = @session.find(:link, 'Blank Anchor')
expect(@session.click_link_or_button('Blank Anchor')).to eq link
end
end