Commit 3821a9f4 authored by Ryan Herbert's avatar Ryan Herbert

test_login.rb another test

See #2881
parent 9ba863a4
......@@ -15,7 +15,23 @@ class TestLogin < BrowserTest
assert(login_form.present?)
login_form.text_field(:id => "auth_user_email").set('foo@bar.com')
login_form.text_field(:id => "auth_user_password").set('foobar')
login_form.tr(:id => 'submit_record_row').input(:type => 'submit').click
login_form.tr(:id => 'submit_record__row').input(:type => 'submit').click
Watir::Wait.until(timeout: 30) {$b.execute_script("return jQuery.active") == 0}
assert(login_form.present?)
end
def test_01_successful_login
login_form = $b.form(:id => 'login_form')
assert(login_form.present?)
login_form.text_field(:id => "auth_user_email").set('plop@plop.com')
login_form.text_field(:id => "auth_user_password").set('foobar')
login_form.tr(:id => 'submit_record__row').input(:type => 'submit').click
Watir::Wait.until(timeout: 30) {$b.execute_script("return jQuery.active") == 0}
assert(!login_form.present?)
end
def test_zz_close
close_everything
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment