Added pending spec for clicks_link not matching inner_html. Fix will be involved and likely breaking, because clicks_link does explicitly match inner_html today. However, we think the spec makes clear why it shouldn't. Luke Melia / Noah Davis
This commit is contained in:
parent
ba3e29d2a3
commit
f262e338bf
|
@ -271,6 +271,17 @@ describe "click_link" do
|
|||
@session.click_link "This is a link"
|
||||
end
|
||||
|
||||
it "should not match on non-text contents" do
|
||||
pending "needs fix"
|
||||
@session.response_body = <<-EOS
|
||||
<a href="/page1"><span class="location">My house</span></a>
|
||||
<a href="/page2">Location</a>
|
||||
EOS
|
||||
|
||||
@session.should_receive(:get).with("/page2", {})
|
||||
@session.click_link "Location"
|
||||
end
|
||||
|
||||
it "should click link within a selector" do
|
||||
@session.response_body = <<-EOS
|
||||
<a href="/page1">Link</a>
|
||||
|
|
Loading…
Reference in New Issue