Commit e3d59de0 authored by Ryan Herbert's avatar Ryan Herbert

test_sample_set.rb login if necessary

parent 480ae4bc
......@@ -8,6 +8,12 @@ class TestSampleSet < BrowserTest
if not defined? $b
set_browser("http://localhost/browser")
end
login_form = $b.form(:id => 'login_form')
if login_form.present?
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
end
end
def test_patient_001_list
......
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