fixed UI test
This commit is contained in:
parent
81fa41458e
commit
405824e7b7
1 changed files with 2 additions and 4 deletions
|
@ -28,8 +28,7 @@ class ExampleTest < Test::Unit::TestCase
|
||||||
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"
|
||||||
element_password.send_keys "123456"
|
element_password.send_keys "123456"
|
||||||
element_form = browser.find_element :id => "login"
|
element_password.submit
|
||||||
element_form.submit
|
|
||||||
assert_equal browser.current_url, "https://portal.znuny.com/#login"
|
assert_equal browser.current_url, "https://portal.znuny.com/#login"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -40,8 +39,7 @@ class ExampleTest < Test::Unit::TestCase
|
||||||
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_form = browser.find_element :id => "login"
|
element_password.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
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue