X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/92cb77cd08bbcc8ca0c0eab3aa5446efd43fb69f..4fdfbe8fb9523451b0536042d14c2f229b75c0f3:/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 562e2d32c3..8657aaa0e4 100644 --- a/apps/workbench/test/integration/collections_test.rb +++ b/apps/workbench/test/integration/collections_test.rb @@ -40,8 +40,9 @@ 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_afolder']['name'] - visit page_with_token('active', "/collections/#{uuid}") + coll_name = api_fixture('links')['foo_collection_name_in_aproject']['name'] + 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