Commit 4a6e6912 authored by Ryan Herbert's avatar Ryan Herbert

test_sample_set.rb add account for deleted row

Since we're deleting a line in the form, we need to account for the the
missing field id
parent 2bb78786
Pipeline #41678 failed with stages
in 4 minutes and 27 seconds
......@@ -55,11 +55,16 @@ class TestSampleSet < ServerTest
# fill in form
for i in 0..4 do
form.text_field(:id => "patient_id_label_%d" % i).set("test_label %d" % i)
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 #mytag%d" % [i, i])
if i > 2
k = i+1
else
k = i
end
form.text_field(:id => "patient_id_label_%d" % k).set("test_label %d" % k)
form.text_field(:id => "patient_first_name_%d"% k).set("first %d" % k)
form.text_field(:id => "patient_last_name_%d" % k).set("last %d" % k)
form.text_field(:id => "patient_birth_%d" % k).set("2010-10-10")
form.text_field(:id => "patient_info_%d" % k).set("patient %d #test #mytag%d" % [k, k])
end
form.input(:type => "submit").click
......
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