X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e8670f2a3e44458c963bb4b08a57d812a9b9d902..6d5e04a731edc9ce8944ecea637070afbdadeb05:/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 adc35d0cb0..0317f162ad 100644 --- a/apps/workbench/test/integration/logins_test.rb +++ b/apps/workbench/test/integration/logins_test.rb @@ -1,6 +1,10 @@ require 'integration_helper' class LoginsTest < ActionDispatch::IntegrationTest + setup do + Capybara.current_driver = Capybara.javascript_driver + end + test "login with api_token works after redirect" do visit page_with_token('active_trustedclient') assert page.has_text?('Recent jobs'), "Missing 'Recent jobs' from page" @@ -8,8 +12,6 @@ class LoginsTest < ActionDispatch::IntegrationTest end test "trying to use expired token redirects to login page" do - Capybara.current_driver = :rack_test - visit page_with_token('expired_trustedclient') buttons = all("a.btn", text: /Log in/) assert_equal(1, buttons.size, "Failed to find one login button")