Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / test / integration / logins_test.rb
index 7f2774ce2f33beb7d596a32dc89569c984ff17f2..3c6ab7c7436e1ddb06621a01136ba85673ec78f2 100644 (file)
@@ -11,16 +11,13 @@ class LoginsTest < ActionDispatch::IntegrationTest
 
   test "login with api_token works after redirect" do
     visit page_with_token('active_trustedclient')
-    assert page.has_text?('Recent pipelines and processes'), "Missing 'Recent pipelines and processes' from page"
+    assert page.has_text?('Recent processes'), "Missing 'Recent processes' from page"
     assert_no_match(/\bapi_token=/, current_path)
   end
 
   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