Commit 7528658c authored by Mikaël Salson's avatar Mikaël Salson
Browse files

Merge branch 'hotfix-s/more-reliable-server-tests' into 'dev'

Fix server test

See merge request !668
parents ee64e5da 5d0f9589
Pipeline #139331 passed with stages
in 8 minutes and 24 seconds
......@@ -25,9 +25,8 @@ class TestSample < ServerTest
# load patient list
$b.a(:class => ["button", "button_token", "patient_token"], :text => "patients").click
Watir::Wait.until(timeout: 30) {$b.execute_script("return jQuery.active") == 0}
table = $b.table(:id => "table")
table.wait_until(&:present?)
table
$b.table(:id => "table").wait_until(&:present?)
$b.table(:id => "table")
end
def go_to_set(index)
......@@ -161,8 +160,9 @@ class TestSample < ServerTest
assert ($b.form(:id => "upload_form").present?)
form.file_field(:id => 'file_upload_2_1').set(File.expand_path(__FILE__))
form.input(:type => "submit").click
$b.form(:id => "upload_form").input(:css => "[type=submit]:not(.disabledClass)").click
Watir::Wait.until(timeout: 30) {$b.execute_script("return jQuery.active") == 0}
table = $b.table(:id => "table")
table.wait_until(&:present?)
......
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