From b6d8769fd0b2c228861fff1343c51e3b376b58c9 Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Thu, 24 Jun 2021 13:17:06 -0400 Subject: [PATCH] 17829: Fix test Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- apps/workbench/test/integration/logins_test.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 -- 2.30.2