fixed UI test
This commit is contained in:
parent
405824e7b7
commit
2e04329e14
1 changed files with 1 additions and 2 deletions
|
@ -23,7 +23,6 @@ class ExampleTest < Test::Unit::TestCase
|
||||||
|
|
||||||
def test_login_failed
|
def test_login_failed
|
||||||
browser.get "http://portal.znuny.com/"
|
browser.get "http://portal.znuny.com/"
|
||||||
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"
|
||||||
element_password = browser.find_element :name => "password"
|
element_password = browser.find_element :name => "password"
|
||||||
|
@ -34,12 +33,12 @@ class ExampleTest < Test::Unit::TestCase
|
||||||
|
|
||||||
def test_login_passed
|
def test_login_passed
|
||||||
browser.get "http://portal.znuny.com/"
|
browser.get "http://portal.znuny.com/"
|
||||||
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"
|
||||||
element_password = browser.find_element :name => "password"
|
element_password = browser.find_element :name => "password"
|
||||||
element_password.send_keys "090504"
|
element_password.send_keys "090504"
|
||||||
element_password.submit
|
element_password.submit
|
||||||
|
browser.wait_for_page_to_load
|
||||||
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
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue