projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
10144: call object_for_dataclass only when attr value is not-nil.
[arvados.git]
/
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 eded53e2166a2efbba45dfdbeb859c22e5bca359..b1d5a2158909d68cae12ab58512168df8167fbaa 100644
(file)
--- 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'
visit page_with_token "active", "/#{type}/#{obj['uuid']}"
assert_text 'created_at'
+
if cancelable
if cancelable
+ assert_text 'priority: 1' if type.include?('container')
assert_selector 'button', text: 'Cancel'
assert_selector 'button', text: 'Cancel'
- click_button 'Cancel'
+ first('a,button', text: 'Cancel').click
wait_for_ajax
end
wait_for_ajax
end
- assert_
no_selector 'button', text: 'Cancel'
+ assert_
text 'priority: 0' if cancelable and type.include?('container')
end
end
end
end