Commit 303f2bc9 authored by Ryan Herbert's avatar Ryan Herbert
Browse files

test_003_pre_process.rb add waiting

when clicking a button ensure we wait for the query.
parent 41f7403b
......@@ -13,12 +13,14 @@ class TestPreProcess < 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(30) {$b.execute_script("return jQuery.active") == 0}
end
end
def go_to_list
#$b.a(:class => ["button", "button_token", "patient_token"], :text => "patients").click
$b.a(:class => "button", :text => "pre-process").click
Watir::Wait.until(30) {$b.execute_script("return jQuery.active") == 0}
table = $b.table(:id => "table")
table.wait_until_present
table
......
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