Merge branch 'master' into 10078-dashboard-perf
[arvados.git] / apps / workbench / test / integration / work_units_test.rb
index eded53e2166a2efbba45dfdbeb859c22e5bca359..b1d5a2158909d68cae12ab58512168df8167fbaa 100644 (file)
@@ -74,12 +74,14 @@ class WorkUnitsTest < ActionDispatch::IntegrationTest
       visit page_with_token "active", "/#{type}/#{obj['uuid']}"
 
       assert_text 'created_at'
+
       if cancelable
+        assert_text 'priority: 1' if type.include?('container')
         assert_selector 'button', text: 'Cancel'
-        click_button 'Cancel'
+        first('a,button', text: 'Cancel').click
         wait_for_ajax
       end
-      assert_no_selector 'button', text: 'Cancel'
+      assert_text 'priority: 0' if cancelable and type.include?('container')
     end
   end