10078: Since we are not fetching components for pipeline instances (at least until...
[arvados.git] / apps / workbench / test / integration / application_layout_test.rb
index 2d101f94e4c764423fd5af7c89040851f12edca0..c4eb941b08894bb4cf58c88f75ba7e721e120f3f 100644 (file)
@@ -250,18 +250,38 @@ class ApplicationLayoutTest < ActionDispatch::IntegrationTest
       visit page_with_token(token)
 
       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 processes')
+      end
+
       within('.recent-processes') do
-        page.has_button? 'Run a pipeline'
-        page.has_link? 'All pipelines'
-        assert_text 'zzzzz-d1hrv-partdonepipelin'
+        assert_text 'pipeline_with_job'
+
+        within('.row-zzzzz-xvhdp-cr4runningcntnr') do
+          assert_text 'requester_for_running_cr'
+        end
+
         assert_text 'zzzzz-d1hrv-twodonepipeline'
-        assert_text 'zzzzz-dz642-runningcontainr'
-        assert_text 'zzzzz-dz642-runningcontain2'
+        within('.row-zzzzz-d1hrv-twodonepipeline')do
+          assert_text 'No output'
+        end
+
+        assert_text 'completed container request'
+        within('.row-zzzzz-xvhdp-cr4completedctr')do
+          assert page.has_link? '1f4b0bc7583c2a7f9102c395f4ffc5e3+45'
+        end
+      end
+
+      within('.compute-node-actions') do
+        if is_admin
+          assert page.has_link?('All nodes')
+        else
+          assert page.has_no_link?('All nodes')
+        end
       end
 
       within('.compute-node-summary-pane') do
-        page.has_link?('All nodes') if is_admin
-        page.has_link? 'All jobs'
         click_link 'Details'
         assert_text 'compute0'
       end