X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0821f5481edd016a3744bb50d97a9e5b99cd1a0f..c8d04b26dbeb3dd4401788053bf514b9f172a185:/apps/workbench/test/integration/work_units_test.rb diff --git a/apps/workbench/test/integration/work_units_test.rb b/apps/workbench/test/integration/work_units_test.rb index eded53e216..b1d5a21589 100644 --- a/apps/workbench/test/integration/work_units_test.rb +++ b/apps/workbench/test/integration/work_units_test.rb @@ -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