added click link test to selenium

This commit is contained in:
Amos King 2009-01-13 22:35:58 -06:00
parent 2510e7d43d
commit 0aa5fda61d
1 changed files with 6 additions and 0 deletions

View File

@ -23,4 +23,10 @@ class WebratTest < ActionController::IntegrationTest
visit external_redirect_path
assert response.redirect?
end
test "should click link by text" do
visit internal_redirect_path
click_link "Test Link Text"
assert_contain("Webrat Form")
end
end