From 916a098440e4ad7900d297a5ee9914975d317177 Mon Sep 17 00:00:00 2001 From: radhika Date: Fri, 6 Jun 2014 14:41:42 -0400 Subject: [PATCH] 2872: when a pipeline instance still needs input, the Run button should be disabled. --- .../workbench/test/integration/pipeline_instances_test.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/workbench/test/integration/pipeline_instances_test.rb b/apps/workbench/test/integration/pipeline_instances_test.rb index 84a4af8c96..42f6950af9 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 @@ -71,10 +74,5 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest # Pipeline is stopped. It should now be in paused state. assert page.has_text? 'Paused' 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 -- 2.30.2