added xpath test to selenium
This commit is contained in:
parent
647eb4cb6f
commit
a32ec70d7f
|
@ -35,4 +35,9 @@ class WebratTest < ActionController::IntegrationTest
|
|||
click_link "link_id"
|
||||
assert_contain("Webrat Form")
|
||||
end
|
||||
|
||||
test "should be able to assert xpath" do
|
||||
visit root_path
|
||||
assert_have_xpath "//h1"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue