Commit afe79782 authored by Ryan Herbert's avatar Ryan Herbert

test_sample_set.py add test for filter

parent c80f6d28
Pipeline #32971 failed with stages
in 26 seconds
......@@ -51,7 +51,7 @@ class TestSampleSet < BrowserTest
form.text_field(:id => "patient_first_name_%d"% i).set("first %d" % i)
form.text_field(:id => "patient_last_name_%d" % i).set("last %d" % i)
form.text_field(:id => "patient_birth_%d" % i).set("2010-10-10")
form.text_field(:id => "patient_info_%d" % i).set("patient %d #test" % i)
form.text_field(:id => "patient_info_%d" % i).set("patient %d #test #mytag%d" % [i, i])
end
form.input(:type => "submit").click
......@@ -81,7 +81,7 @@ class TestSampleSet < BrowserTest
assert(form.text_field(:id => "patient_first_name_0").value == "first 4")
assert(form.text_field(:id => "patient_last_name_0").value == "last 4")
assert(form.text_field(:id => "patient_birth_0").value == "2010-10-10")
assert(info.value == "patient 4 #test")
assert(info.value == "patient 4 #test #mytag4")
info.set("#edited")
......@@ -108,6 +108,18 @@ class TestSampleSet < BrowserTest
assert(lines.count == 4)
end
def test_patient_005_search
table = go_to_list
filter = $b.text_field(:id => "db_filter_input")
filter.set('patient 2')
filter.fire_event('onblur')
Watir::Wait.until(timeout: 30) {$b.execute_script("return jQuery.active") == 0}
table = $b.table(:id => 'table')
lines = table.tbody.rows
assert(lines.count == 1)
end
def test_zz_close
close_everything
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