From f34090c0b416f573b5cd35aae557fa443e8b2f03 Mon Sep 17 00:00:00 2001 From: Radhika Chippada Date: Tue, 9 Dec 2014 16:57:06 -0500 Subject: [PATCH] 4754: search_test assertions --- apps/workbench/test/performance/search_test.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/workbench/test/performance/search_test.rb b/apps/workbench/test/performance/search_test.rb index c84a47b2c3..ab71d84e46 100644 --- a/apps/workbench/test/performance/search_test.rb +++ b/apps/workbench/test/performance/search_test.rb @@ -27,8 +27,11 @@ class SearchTest < ActionDispatch::PerformanceTest page.find('.glyphicon-search').click end - # We should now be in the search dialog. Expect at least one collection in the result display. - assert_text 'Search' - assert_text '-8i9sb-' + # We should now be in the search dialog. Expect at least one item in the result display. + within '.modal-content' do + assert_text 'All projects' + assert_text 'Search' + assert_selector('div', text: 'zzzzz-') + end end end -- 2.30.2