From f4141f787df03eaa7c9ab621e84ebf80db37de4c Mon Sep 17 00:00:00 2001 From: Mike Gaffney Date: Mon, 8 Jun 2009 11:09:42 -0500 Subject: [PATCH] [#261 state:awaiting-patch] added a test that shows that selenium can't click a link with text that has parens in it --- spec/integration/rails/app/views/links/show.html.erb | 3 ++- spec/integration/rails/test/integration/link_click_test.rb | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/spec/integration/rails/app/views/links/show.html.erb b/spec/integration/rails/app/views/links/show.html.erb index d1700a3..5538df2 100644 --- a/spec/integration/rails/app/views/links/show.html.erb +++ b/spec/integration/rails/app/views/links/show.html.erb @@ -1,4 +1,5 @@

Webrat Links Page

LinkByText
id
-title \ No newline at end of file +title
+Link With (parens)
diff --git a/spec/integration/rails/test/integration/link_click_test.rb b/spec/integration/rails/test/integration/link_click_test.rb index 9cc517f..eb3810f 100644 --- a/spec/integration/rails/test/integration/link_click_test.rb +++ b/spec/integration/rails/test/integration/link_click_test.rb @@ -18,4 +18,10 @@ class LinkClickTest < ActionController::IntegrationTest click_link "LinkByTitle" assert_contain("Link:LinkByTitle") 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 \ No newline at end of file