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:
committed by
Sarah Boyce
parent
9aabe7eae3
commit
849f8307a5
@@ -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>",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user