X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d0bf7a1ff103285e54433d3bcb67c2138b534542..563f568124876cc8577baec11caf33e73466b975:/apps/workbench/test/integration/logins_test.rb diff --git a/apps/workbench/test/integration/logins_test.rb b/apps/workbench/test/integration/logins_test.rb index 185d9cb017..be7e4e15a5 100644 --- a/apps/workbench/test/integration/logins_test.rb +++ b/apps/workbench/test/integration/logins_test.rb @@ -1,4 +1,4 @@ -require 'test_helper' +require 'integration_helper' class LoginsTest < ActionDispatch::IntegrationTest test "login with api_token works after redirect" do @@ -11,4 +11,11 @@ class LoginsTest < ActionDispatch::IntegrationTest visit page_with_token('expired_trustedclient') assert page.has_text? 'Log in' end + + test "expired token yields login page, not error page" do + visit page_with_token('expired_trustedclient') + # Even the error page has a "Log in" link. We should look for + # something that only appears the real login page. + assert page.has_text? ' Log in Oh... fiddlesticks. Sorry, I had some trouble handling your request' + end end