Commit 856ee18e authored by Ryan Herbert's avatar Ryan Herbert

test_login.rb don't use named varibale

for the call to Watir::Wait.until simply pass the timeout value instead
    of passing a named parameter
parent c9c3d058
Pipeline #33149 failed with stages
in 3 minutes and 33 seconds
......@@ -34,7 +34,7 @@ class TestLogin < BrowserTest
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
Watir::Wait.until(timeout: 30) {$b.execute_script("return jQuery.active") == 0}
Watir::Wait.until(30) {$b.execute_script("return jQuery.active") == 0}
login_form = $b.form(:id => 'login_form')
assert(login_form.present?)
......@@ -46,7 +46,7 @@ class TestLogin < BrowserTest
login_form.text_field(:id => "auth_user_email").set('plop@plop.com')
login_form.text_field(:id => "auth_user_password").set('foobartest')
login_form.tr(:id => 'submit_record__row').input(:type => 'submit').click
Watir::Wait.until(timeout: 30) {$b.execute_script("return jQuery.active") == 0}
Watir::Wait.until(30) {$b.execute_script("return jQuery.active") == 0}
assert(!login_form.present?)
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