fixed UI test

This commit is contained in:
roy 2012-11-12 20:37:38 +01:00
parent ffb9b15ad4
commit 81fa41458e

View file

@ -22,6 +22,7 @@ class ExampleTest < Test::Unit::TestCase
end
def test_login_failed
browser.get "http://portal.znuny.com/"
puts "Page title is #{browser.title}"
element_username = browser.find_element :name => "username"
element_username.send_keys "roy@kaldung.de"
@ -33,6 +34,7 @@ class ExampleTest < Test::Unit::TestCase
end
def test_login_passed
browser.get "http://portal.znuny.com/"
puts "Page title is #{browser.title}"
element_username = browser.find_element :name => "username"
element_username.send_keys "roy@kaldung.com"
@ -42,12 +44,6 @@ class ExampleTest < Test::Unit::TestCase
element_form.submit
assert_equal browser.current_url, "https://portal.znuny.com/#ticket_view/my_tickets"
end
def test_page_search
browser.get "http://www.google.com"
puts "Page title is #{browser.title}"
assert_equal "Google", browser.title
end
end