X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e016b28393b74cd30a78ebe03eca7e37a51fefd3..6757824d984496469cd929cdbb62643c1cede7fd:/apps/workbench/test/integration/application_layout_test.rb diff --git a/apps/workbench/test/integration/application_layout_test.rb b/apps/workbench/test/integration/application_layout_test.rb index 969ec89780..c4eb941b08 100644 --- a/apps/workbench/test/integration/application_layout_test.rb +++ b/apps/workbench/test/integration/application_layout_test.rb @@ -179,7 +179,7 @@ class ApplicationLayoutTest < ActionDispatch::IntegrationTest first('button', text: 'x').click end - assert_text 'Recent processes' # seeing dashboard now + assert_text 'Recent pipelines and processes' # seeing dashboard now end end @@ -249,19 +249,39 @@ class ApplicationLayoutTest < ActionDispatch::IntegrationTest test "visit dashboard as #{token}" do visit page_with_token(token) - assert_text 'Recent processes' # seeing dashboard now + 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