test "ignore previously valid token (for deleted user), don't crash" do
get :welcome, {}, session_for(:valid_token_deleted_user)
- assert_response :success
+ assert_response :redirect
+ assert_match /^#{Rails.configuration.arvados_login_base}/, @response.redirect_url
assert_nil assigns(:my_jobs)
assert_nil assigns(:my_ssh_keys)
end
-require 'test_helper'
+require 'integration_helper'
class LoginsTest < ActionDispatch::IntegrationTest
test "login with api_token works after redirect" 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 here with your Google account'
+ assert page.has_text? ' Log in Oh... fiddlesticks. Sorry, I had some trouble handling your request'
end
end
instance_page = current_path
# Go over to the collections page and select something
- click_link 'Collections (data files)'
+ visit '/collections'
within('tr', text: 'GNU_General_Public_License') do
find('input[type=checkbox]').click
end