15430: Updates wb1 test so that it exercises the ilike operator instead of @@
authorLucas Di Pentima <lucas.dipentima@curii.com>
Thu, 12 Aug 2021 15:50:55 +0000 (12:50 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Mon, 16 Aug 2021 19:00:44 +0000 (16:00 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>

apps/workbench/test/controllers/work_units_controller_test.rb

index 6f74955cd1c8d0940c979b70867a6cbbfda5aacb..375c65c9bb0bc40494f445c16e8f901b01cbd721 100644 (file)
@@ -32,7 +32,7 @@ class WorkUnitsControllerTest < ActionController::TestCase
        '/container_requests/zzzzz-xvhdp-cr4completedcr2']],
   ].each do |search_filter, expected_min, expected_max, expected, not_expected|
     test "all_processes page for search filter '#{search_filter}'" do
-      work_units_index(filters: [['any','@@', search_filter]], show_children: true)
+      work_units_index(filters: [['any','ilike', "%#{search_filter}%"]], show_children: true)
       assert_response :success
 
       # Verify that expected number of processes are found