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:
parent
54d7c0c9bb
commit
d00fc2875c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue