5110: full text search seems to treat '_' characters as spaces. Thus, when searched...
authorRadhika Chippada <radhika@curoverse.com>
Tue, 10 Feb 2015 02:50:41 +0000 (21:50 -0500)
committerRadhika Chippada <radhika@curoverse.com>
Tue, 10 Feb 2015 02:50:41 +0000 (21:50 -0500)
are also fetched since '1' is a common word and ignored. Hence, update the test to use more specific search filters.

apps/workbench/test/integration/filterable_infinite_scroll_test.rb

index b4dadcd13f853f2086cb62797d1e12a67da3105d..777696a8ec5bf1c97bfd5ebd2f382b64b3936491 100644 (file)
@@ -10,18 +10,18 @@ class FilterableInfiniteScrollTest < ActionDispatch::IntegrationTest
   # unused ?search=foo param to pre-populate the search field.
   test 'no double-load if text input has a value at page load time' do
     visit page_with_token('admin', '/pipeline_instances')
-    assert_text 'pipeline_2'
-    visit page_with_token('admin', '/pipeline_instances?search=pipeline_1')
+    assert_text 'pipeline_with_job'
+    visit page_with_token('admin', '/pipeline_instances?search=pipeline_with_tagged')
     # Horrible hack to ensure the search results can't load correctly
     # on the second attempt.
     assert_selector '#recent-pipeline-instances'
     assert page.evaluate_script('$("#recent-pipeline-instances[data-infinite-content-href0]").attr("data-infinite-content-href0","/give-me-an-error").length == 1')
     # Wait for the first page of results to appear.
-    assert_text 'pipeline_1'
+    assert_text 'pipeline_with_tagged_collection_input'
     # Make sure the results are filtered.
-    assert_no_text 'pipeline_2'
+    assert_no_text 'pipeline_with_job'
     # Make sure pipeline_2 didn't disappear merely because the results
     # were replaced with an error message.
-    assert_text 'pipeline_1'
+    assert_text 'pipeline_with_tagged_collection_input'
   end
 end