Change auth provider logo alt texts to indicate that these are logos

This commit is contained in:
Anton Khorev 2024-07-03 10:40:27 +03:00
parent f9db802c7b
commit 81ac29fad8
2 changed files with 7 additions and 7 deletions

View file

@ -116,7 +116,7 @@ class UserHelperTest < ActionView::TestCase
def test_auth_button
button = auth_button("google", "google")
img_tag = "<img alt=\"Log in with a Google OpenID\" class=\"rounded-1\" src=\"/images/google.svg\" width=\"36\" height=\"36\" />"
img_tag = "<img alt=\"Google logo\" class=\"rounded-1\" src=\"/images/google.svg\" width=\"36\" height=\"36\" />"
assert_equal("<a class=\"auth_button btn btn-light mx-1 p-2 d-block\" title=\"Log in with Google\" rel=\"nofollow\" data-method=\"post\" href=\"/auth/google\">#{img_tag}</a>", button)
end