Skip to content

Commit

Permalink
[IMP] Update search test
Browse files Browse the repository at this point in the history
refs OSC-19
  • Loading branch information
thorn-lysa committed May 25, 2022
1 parent 2866074 commit 0467bcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/features/family_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
fill_in 'family[family_members_attributes][0][adult_name]', with: 'Test'
find(".family_family_members_gender select option[value='female']", visible: false).select_option
click_link 'Save'
sleep 5
wait_for_ajax
expect(page).to have_content('Family Name')
expect(page).to have_content('Test')
end
Expand Down
4 changes: 3 additions & 1 deletion spec/features/report_builder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
scenario 'for client' do
visit clients_path
find('.client-search').click
expect(page).to have_content('Search')
expect(page).to have_content('Given Name (Latin)')
fill_in 'Given Name (Latin)', with: 'Adam'
find('#client-grid-search-btn').click
wait_for_ajax()
expect(page).to have_content("Adam")
Expand All @@ -22,6 +23,7 @@
let!(:family){ create(:family, children: [client.id] ) }
scenario 'for family' do
visit families_path
fill_in 'Family ID', with: family.id
find('#client-grid-search-btn').click
wait_for_ajax()
expect(page).to have_content(family.id)
Expand Down

0 comments on commit 0467bcf

Please sign in to comment.