2872: when a pipeline instance still needs input, the Run button should be disabled.
authorradhika <radhika@curoverse.com>
Fri, 6 Jun 2014 18:41:42 +0000 (14:41 -0400)
committerradhika <radhika@curoverse.com>
Fri, 6 Jun 2014 18:41:42 +0000 (14:41 -0400)
apps/workbench/test/integration/pipeline_instances_test.rb

index 84a4af8c96c5ce66f3a4421500755c81b710b7d0..42f6950af9bc32e0dab3f666dce5ab38dd5c1a7f 100644 (file)
@@ -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