[#261 state:awaiting-patch]

added a test that shows that selenium can't click a link with text that has parens in it
This commit is contained in:
Mike Gaffney 2009-06-08 11:09:42 -05:00
parent 6bfdcc54cc
commit f4141f787d
2 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,5 @@
<h1>Webrat Links Page</h1> <h1>Webrat Links Page</h1>
<a href="/links?value=LinkByText">LinkByText</a><br /> <a href="/links?value=LinkByText">LinkByText</a><br />
<a href="/links?value=link_by_id" id="link_by_id">id</a><br /> <a href="/links?value=link_by_id" id="link_by_id">id</a><br />
<a href="/links?value=LinkByTitle" title="LinkByTitle">title</a> <a href="/links?value=LinkByTitle" title="LinkByTitle">title</a><br />
<a href="/links?value=link_with_parens">Link With (parens)</a><br />

View File

@ -18,4 +18,10 @@ class LinkClickTest < ActionController::IntegrationTest
click_link "LinkByTitle" click_link "LinkByTitle"
assert_contain("Link:LinkByTitle") assert_contain("Link:LinkByTitle")
end end
test "should be able to click links with non letter characters" do
visit links_path
click_link "Link With (parens)"
assert_contain("Link:link_with_parens")
end
end end