14988: Fixes assert_equal param ordering for proper error messages.
[arvados.git] / apps / workbench / test / integration / work_units_test.rb
index 4dd449551ad7eef71a306ca25896393b016cb1ab..e5cc6e4dc050d47bfa2d6220a4ec02528ef7aa05 100644 (file)
@@ -31,9 +31,8 @@ class WorkUnitsTest < ActionDispatch::IntegrationTest
      '/jobs/zzzzz-8i9sb-n7omg50bvt0m1nf',
      '/container_requests/zzzzz-xvhdp-cr4requestercn2'
     ]]
-  ].each do |expects|
-    test "scroll all_processes page with show_children #{expects[0]}" do
-      show_children, expected_min, expected_max, expected, not_expected = expects
+  ].each do |show_children, expected_min, expected_max, expected, not_expected|
+    test "scroll all_processes page with show_children=#{show_children}" do
       visit page_with_token('active', "/all_processes")
 
       if show_children
@@ -94,7 +93,7 @@ class WorkUnitsTest < ActionDispatch::IntegrationTest
 
       assert_text 'created_at'
       if cancelable
-        assert_text 'priority: 1' if type.include?('container')
+        assert_text 'priority: 501' if type.include?('container')
         if type.include?('pipeline')
           assert_selector 'a', text: 'Pause'
           first('a,link', text: 'Pause').click