X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b4be060bb0ee42281fc3a044c60d2b55c74475f8..42c20b25e1325124b88e3b9b285544dc41122b56:/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 f079fbb8f1..3c6ab7c743 100644 --- a/apps/workbench/test/integration/logins_test.rb +++ b/apps/workbench/test/integration/logins_test.rb @@ -17,10 +17,7 @@ class LoginsTest < ActionDispatch::IntegrationTest test "trying to use expired token redirects to login page" do visit page_with_token('expired_trustedclient') - buttons = all("a.btn", text: /Log in/) + buttons = all("button.btn", text: /Log in/) assert_equal(1, buttons.size, "Failed to find one login button") - login_link = buttons.first[:href] - assert_match(%r{//[^/]+/login}, login_link) - assert_no_match(/\bapi_token=/, login_link) end end