Commit d2b3f605 authored by Mikaël Salson's avatar Mikaël Salson

server/tests/functional: Table needs to be retrieved again

Otherwise we get a deprecate warning as the table has changed
since it was retrieved.
See e.g. https://groups.google.com/forum/#!topic/watir-general/rM3LZl9WzKw
parent dd87b250
......@@ -86,6 +86,7 @@ class TestPreProcess < ServerTest
Watir::Wait.until(timeout: 30) {$b.execute_script("return jQuery.active") == 0}
$b.button(:text => "continue").click
Watir::Wait.until(timeout: 30) {$b.execute_script("return jQuery.active") == 0}
table = $b.table(:id => "table")
table.wait_until(&:present?)
lines = table.tbody.rows
assert(lines.count == count-1)
......
......@@ -257,6 +257,7 @@ class TestSample < ServerTest
Watir::Wait.until(timeout: 30) {$b.execute_script("return jQuery.active") == 0}
table = $b.table(:id => "table")
table.wait_until(&:present?)
assert(table.tbody.rows.count == count-1)
end
......
......@@ -70,6 +70,7 @@ class TestSampleSet < ServerTest
form.input(:type => "submit").click
# ensure patients were added
table = $b.table(:id => "table")
table.wait_until(&:present?)
lines = table.tbody.rows
assert(lines.count == count + 5)
......@@ -121,6 +122,7 @@ class TestSampleSet < ServerTest
delete_button.wait_until(&:present?)
delete_button.click
table = $b.table(:id => "table")
table.wait_until(&:present?)
lines = table.tbody.rows
assert(lines.count == count-1)
......
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