Merge branch '2659-anonymous-share-projects' of git.curoverse.com:arvados into 2659...
[arvados.git] / apps / workbench / test / integration / errors_test.rb
index 19ed7dca684f8b1a460e560220fc82a642fc687d..1cac667b22d3e61a2409fb5324f07b5d7ff2b516 100644 (file)
@@ -2,7 +2,7 @@ require 'integration_helper'
 
 class ErrorsTest < ActionDispatch::IntegrationTest
   setup do
-    Capybara.current_driver = Capybara.javascript_driver
+    need_javascript
   end
 
   BAD_UUID = "ffffffffffffffffffffffffffffffff+0"
@@ -126,4 +126,9 @@ class ErrorsTest < ActionDispatch::IntegrationTest
     end
   end
 
+  test "404 page checks if user not logged in and makes suggestion" do
+    visit "/collections/#{BAD_UUID}"
+    assert_text 'you are not logged in'
+  end
+
 end