2872: added graph and run button checks back. the test does not pass right now due...
[arvados.git] / apps / workbench / test / integration / pipeline_instances_test.rb
index 42f6950af9bc32e0dab3f666dce5ab38dd5c1a7f..a755b1f6425b1ba4ca32ce9ff82b9b30f6293613 100644 (file)
@@ -67,12 +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'
   end
 end