projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into 3138-wiselinks
[arvados.git]
/
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 562e2d32c3084605726526bdbb6aafe4ac77ebb1..8657aaa0e492308075f891e89f89aece2df7a6b3 100644
(file)
--- 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']
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.
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
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
end