fixed UI test
This commit is contained in:
parent
ffb9b15ad4
commit
81fa41458e
1 changed files with 2 additions and 6 deletions
|
@ -22,6 +22,7 @@ class ExampleTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_login_failed
|
def test_login_failed
|
||||||
|
browser.get "http://portal.znuny.com/"
|
||||||
puts "Page title is #{browser.title}"
|
puts "Page title is #{browser.title}"
|
||||||
element_username = browser.find_element :name => "username"
|
element_username = browser.find_element :name => "username"
|
||||||
element_username.send_keys "roy@kaldung.de"
|
element_username.send_keys "roy@kaldung.de"
|
||||||
|
@ -33,6 +34,7 @@ class ExampleTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_login_passed
|
def test_login_passed
|
||||||
|
browser.get "http://portal.znuny.com/"
|
||||||
puts "Page title is #{browser.title}"
|
puts "Page title is #{browser.title}"
|
||||||
element_username = browser.find_element :name => "username"
|
element_username = browser.find_element :name => "username"
|
||||||
element_username.send_keys "roy@kaldung.com"
|
element_username.send_keys "roy@kaldung.com"
|
||||||
|
@ -42,12 +44,6 @@ class ExampleTest < Test::Unit::TestCase
|
||||||
element_form.submit
|
element_form.submit
|
||||||
assert_equal browser.current_url, "https://portal.znuny.com/#ticket_view/my_tickets"
|
assert_equal browser.current_url, "https://portal.znuny.com/#ticket_view/my_tickets"
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_page_search
|
|
||||||
browser.get "http://www.google.com"
|
|
||||||
puts "Page title is #{browser.title}"
|
|
||||||
assert_equal "Google", browser.title
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue