fixed UI test
This commit is contained in:
parent
000d7040e3
commit
ffb9b15ad4
1 changed files with 5 additions and 3 deletions
|
@ -22,6 +22,7 @@ class ExampleTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_login_failed
|
def test_login_failed
|
||||||
|
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"
|
||||||
|
@ -32,6 +33,7 @@ class ExampleTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_login_passed
|
def test_login_passed
|
||||||
|
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"
|
||||||
|
|
Loading…
Reference in a new issue