3775: Merge branch 'master' into 3775-fetch-git-repo
[arvados.git] / apps / workbench / test / integration / projects_test.rb
index d50a4775a5e80992d68953f0e286e47a6c2a3253..ae156b8a5329f311a0c0061b69ed3737a855acef 100644 (file)
@@ -304,7 +304,8 @@ class ProjectsTest < ActionDispatch::IntegrationTest
         find(".dropdown-menu a", text: "Home").click
         assert page.has_text?(my_collection['name']), 'Collection not found in home project after remove'
         if expect_name_change
-          assert page.has_text?(my_collection['name']+' removed from'), 'Collection not found in home project after remove'
+          assert page.has_text?(my_collection['name']+' removed from ' + src['name']),
+            'Collection with update name is not found in home project after remove'
         end
       end
     end
@@ -461,4 +462,15 @@ class ProjectsTest < ActionDispatch::IntegrationTest
     assert page.has_link?('Jobs and pipelines'), 'Jobs and pipelines link not found in project'
   end
 
+  [["jobs", "/jobs"],
+   ["pipelines", "/pipeline_instances"],
+   ["collections", "/collections"]
+  ].each do |target,path|
+    test "Test dashboard button all #{target}" do
+      visit page_with_token 'active', '/'
+      click_link "All #{target}"
+      assert_equal path, current_path
+    end
+  end
+
 end