1
0
mirror of https://github.com/django/django.git synced 2025-10-30 09:06:13 +00:00

Fixed #34917 -- Underlined links in the main content area of the admin.

This commit is contained in:
antoliny0919
2025-03-27 08:43:57 +01:00
committed by Sarah Boyce
parent 9aabe7eae3
commit 849f8307a5
24 changed files with 50 additions and 33 deletions

View File

@@ -1089,7 +1089,9 @@ class UserChangeFormTest(TestDataMixin, TestCase):
"Set password",
),
]
password_reset_link = r'<a class="button" href="([^"]*)">([^<]*)</a>'
password_reset_link = (
r'<a role="button" class="button" href="([^"]*)">([^<]*)</a>'
)
for username, expected_help_text, expected_button_label in cases:
with self.subTest(username=username):
user = User.objects.get(username=username)
@@ -1438,7 +1440,8 @@ class ReadOnlyPasswordHashTest(SimpleTestCase):
" <strong>hash</strong>: "
" <bdi>WmCkn9**************************************</bdi>"
" </p>"
' <p><a class="button" href="../password/">Reset password</a></p>'
' <p><a role="button" class="button" href="../password/">'
"Reset password</a></p>"
"</div>",
)