X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/899075bc7866666322677b0dfb0b12844a495425..4f6e2f4b6b289ca7b2016543b425b6b5c2da10bd:/apps/workbench/test/integration/pipeline_instances_test.rb diff --git a/apps/workbench/test/integration/pipeline_instances_test.rb b/apps/workbench/test/integration/pipeline_instances_test.rb index 84a4af8c96..a755b1f642 100644 --- a/apps/workbench/test/integration/pipeline_instances_test.rb +++ b/apps/workbench/test/integration/pipeline_instances_test.rb @@ -18,6 +18,9 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest find('a,button', text: 'Run').click end + # This pipeline needs input. So, Run should be disabled + page.assert_selector 'a.disabled,button.disabled', text: 'Run' + instance_page = current_path find('button', text: 'Choose a folder...').click @@ -64,17 +67,17 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest first('a,button', text: 'Run').click + # Go over to the graph tab + click_link 'Provenance' + assert page.has_css? 'div#provenance_graph' + # Pipeline is running. We have a "Stop" button instead now. page.assert_selector 'a,button', text: 'Stop' find('a,button', text: 'Stop').click - # Pipeline is stopped. It should now be in paused state. + # Pipeline is stopped. It should now be in paused state and Runnable again. assert page.has_text? 'Paused' + page.assert_no_selector 'a.disabled,button.disabled', text: 'Run' page.assert_selector 'a,button', text: 'Clone and edit' - - # Go over to the graph tab -# click_link 'Advanced' -# click_link 'Graph' -# assert page.has_css? 'div#provenance_graph' end end