X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3bfb7144d19cc75bb99e93bc3681cd2b9e4733fe..9b3223e5cbcd1eb89193e8421d430025ddf791d1:/apps/workbench/test/controllers/projects_controller_test.rb diff --git a/apps/workbench/test/controllers/projects_controller_test.rb b/apps/workbench/test/controllers/projects_controller_test.rb index 13979df68f..51a4e37d4b 100644 --- a/apps/workbench/test/controllers/projects_controller_test.rb +++ b/apps/workbench/test/controllers/projects_controller_test.rb @@ -397,4 +397,13 @@ class ProjectsControllerTest < ActionController::TestCase assert_includes @response.body, "All #{target}" end end + + test "visit a public project and verify the public projects page link exists" do + Rails.configuration.anonymous_user_token = api_fixture('api_client_authorizations')['anonymous']['api_token'] + get :show, {id: api_fixture('groups')['anonymously_accessible_project']['uuid']} + project = assigns(:object) + refute_empty css_select("[href=\"/projects/#{project['uuid']}\"]") + assert_includes @response.body, "Public Projects" + end + end