X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e7d49ab46462902a98d812b69d7257d837f85e90..730eb182b2160040a902feb09276b75a3f9c137c:/apps/workbench/test/integration/application_layout_test.rb diff --git a/apps/workbench/test/integration/application_layout_test.rb b/apps/workbench/test/integration/application_layout_test.rb index 61905f31b2..93827a9c74 100644 --- a/apps/workbench/test/integration/application_layout_test.rb +++ b/apps/workbench/test/integration/application_layout_test.rb @@ -252,7 +252,7 @@ class ApplicationLayoutTest < ActionDispatch::IntegrationTest assert_text 'Recent pipelines and processes' # seeing dashboard now within('.recent-processes-actions') do assert page.has_link?('Run a pipeline') - assert page.has_link?('All pipelines') + assert page.has_link?('All processes') end within('.recent-processes') do @@ -278,7 +278,6 @@ class ApplicationLayoutTest < ActionDispatch::IntegrationTest else assert page.has_no_link?('All nodes') end - assert page.has_link? 'All jobs' end within('.compute-node-summary-pane') do @@ -287,53 +286,4 @@ class ApplicationLayoutTest < ActionDispatch::IntegrationTest end end end - - [ - ['jobs', 'running_job_with_components', true], - ['pipeline_instances', 'components_is_jobspec', false], - ['containers', 'running', false], - ['container_requests', 'running', true], - ].each do |type, fixture, cancelable| - test "cancel button for #{type}/#{fixture}" do - if cancelable - need_selenium 'to cancel' - end - - obj = api_fixture(type)[fixture] - visit page_with_token "active", "/#{type}/#{obj['uuid']}" - - assert_text 'created_at' - if cancelable - assert page.has_button?('Cancel'), 'No Cancel button' - click_button 'Cancel' - wait_for_ajax - assert page.has_no_button?('Cancel'), 'Cancel button not expected after clicking' - else - assert page.has_no_button?('Cancel'), 'Cancel button not expected' - end - end - end - - [ - ['jobs', 'running_job_with_components'], - ['pipeline_instances', 'has_component_with_completed_jobs'], - ['container_requests', 'running'], - ['container_requests', 'completed'], - ].each do |type, fixture| - test "edit description for #{type}/#{fixture}" do - obj = api_fixture(type)[fixture] - visit page_with_token "active", "/#{type}/#{obj['uuid']}" - - within('.arv-description-as-subtitle') do - find('.fa-pencil').click - find('.editable-input textarea').set('*Textile description for object*') - find('.editable-submit').click - end - wait_for_ajax - - # verify description - assert page.has_no_text? '*Textile description for object*' - assert page.has_text? 'Textile description for object' - end - end end