X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/29dee6a4abe943797a4baa939085177626997408..609646134bcd8fc3a7fd500848220741ecc4a9d2:/apps/workbench/test/controllers/disabled_api_test.rb diff --git a/apps/workbench/test/controllers/disabled_api_test.rb b/apps/workbench/test/controllers/disabled_api_test.rb index a41d87f31a..47276c02e8 100644 --- a/apps/workbench/test/controllers/disabled_api_test.rb +++ b/apps/workbench/test/controllers/disabled_api_test.rb @@ -12,6 +12,7 @@ class DisabledApiTest < ActionController::TestCase get :index, {}, session_for(:active) assert_includes @response.body, "zzzzz-xvhdp-cr4runningcntnr" # expect crs assert_not_includes @response.body, "zzzzz-d1hrv-" # expect no pipelines + assert_includes @response.body, "Run a process" end [ @@ -33,6 +34,7 @@ class DisabledApiTest < ActionController::TestCase end [ + :admin, :active, nil, ].each do |user| @@ -58,6 +60,7 @@ class DisabledApiTest < ActionController::TestCase assert_includes resp, "href=\"#Pipelines_and_processes\"" assert_includes resp, "href=\"#Workflows\"" assert_not_includes resp, "href=\"#Pipeline_templates\"" + assert_includes @response.body, "Run a process" if user == :admin end end end