Merge branch '4031-fix-graph-connections' closes #4031
[arvados.git] / apps / workbench / test / integration / collections_test.rb
index ea42052a3e068ebbb7583715f5d2ed0fff9dead1..3abbf6f6ac31feb659a99bdd503fde8012663ee9 100644 (file)
@@ -225,11 +225,16 @@ class CollectionsTest < ActionDispatch::IntegrationTest
     assert page.has_no_text?("file1")
     assert page.has_no_text?("file2")
     assert page.has_no_text?("file3")
+    # make sure that we actually are looking at the collections
+    # page and not e.g. a fiddlesticks
+    assert page.has_text?("multilevel_collection_1")
+    assert page.has_text?(col['portable_data_hash'])
 
     # Syntactically invalid regex
     # Page loads, but does not match any files
     page.find_field('file_regex').set('file[2')
     find('button#file_regex_submit').click
+    assert page.has_text?('could not be parsed as a regular expression')
     assert page.has_no_text?("file1")
     assert page.has_no_text?("file2")
     assert page.has_no_text?("file3")