X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a6439c7ddc3407193889386051f06df2a1e74ea9..f2574ec2e4ddef03c9504cd58741e73426ea1b17:/apps/workbench/test/integration/collections_test.rb diff --git a/apps/workbench/test/integration/collections_test.rb b/apps/workbench/test/integration/collections_test.rb index bd426f7ce4..4a33693018 100644 --- a/apps/workbench/test/integration/collections_test.rb +++ b/apps/workbench/test/integration/collections_test.rb @@ -39,4 +39,13 @@ class CollectionsTest < ActionDispatch::IntegrationTest change_persist 'persistent', 'cache' end + test "Collection page renders default name links" do + uuid = api_fixture('collections')['foo_file']['uuid'] + coll_name = api_fixture('links')['foo_collection_name_in_afolder']['name'] + visit page_with_token('active', "/collections/#{uuid}") + assert(page.has_text?(coll_name), "Collection page did not include name") + # Now check that the page is otherwise normal, and the collection name + # isn't only showing up in an error message. + assert(page.has_link?('foo'), "Collection page did not include file link") + end end