X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e08c67024acccb83a30d2010c34862973b883585..c7de9feacdd0803cbc4b93db44a9dc5652b7a755:/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 8978f73a54..8657aaa0e4 100644 --- a/apps/workbench/test/integration/collections_test.rb +++ b/apps/workbench/test/integration/collections_test.rb @@ -41,7 +41,8 @@ class CollectionsTest < ActionDispatch::IntegrationTest test "Collection page renders default name links" do uuid = api_fixture('collections')['foo_file']['uuid'] coll_name = api_fixture('links')['foo_collection_name_in_aproject']['name'] - visit page_with_token('active', "/collections/#{uuid}") + name_uuid = api_fixture('links')['foo_collection_name_in_aproject']['uuid'] + visit page_with_token('active', "/collections/#{name_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. @@ -73,4 +74,10 @@ class CollectionsTest < ActionDispatch::IntegrationTest assert_equal(['foo'], hrefs.compact.sort, "download page did provide strictly file links") end + + test "can view empty collection" do + uuid = 'd41d8cd98f00b204e9800998ecf8427e+0' + visit page_with_token('active', "/collections/#{uuid}") + assert page.has_text?('This collection is empty') + end end