Commit 1a7f2869 authored by Ryan Herbert's avatar Ryan Herbert
Browse files

my account func tests: better tag testing

parent ec0448b9
Pipeline #184273 failed with stages
in 8 minutes and 50 seconds
......@@ -33,8 +33,9 @@ class TestMyAccount < ServerTest
def test_my_account
go_to_my_account
assert($b.div(class: 'set_group').present?)
assert($b.text.include?('public'))
public_group_info = $b.div(id: 'public_info')
assert(public_group_info.present?)
assert(public_group_info.text.include?('public'))
end
def test_filter_my_account_tag
......@@ -46,15 +47,20 @@ class TestMyAccount < ServerTest
assert(test1_tag.present?)
assert(test2_tag.present?)
public_group_info = $b.div(id: 'public_info')
num_patients = public_group_info.span(class: 'patient_num_sets').inner_text
test1_tag.click
Watir::Wait.until(timeout: 30) {$b.execute_script("return jQuery.active") == 0}
assert(test1_tag.present?)
assert(test2_tag.present? == false)
filter = $b.text_field(id: 'db_filter_input')
assert(filter.text == '#test1')
assert(public_group_info.span(class: 'patient_num_sets').inner_text != num_patients)
filter.set('#test2')
Watir::Wait.until(timeout: 30) {$b.execute_script("return jQuery.active") == 0}
assert(filter.text == '#test2')
assert(public_group_info.span(class: 'patient_num_sets').inner_text != num_patients)
assert(test1_tag.present? == false)
assert(test2_tag.present?)
......
Supports Markdown
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