diff options
| author | antoliny0919 <antoliny0919@gmail.com> | 2025-03-27 08:43:57 +0100 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-03-27 13:27:33 +0100 |
| commit | 849f8307a5bb33465252d0891a9b2c47dde65889 (patch) | |
| tree | b3f634892a41bc531a076bc2dcaa82350a355c9c /tests/auth_tests/test_forms.py | |
| parent | 9aabe7eae3eeb3e64c5a0f3687118cd806158550 (diff) | |
Fixed #34917 -- Underlined links in the main content area of the admin.
Diffstat (limited to 'tests/auth_tests/test_forms.py')
| -rw-r--r-- | tests/auth_tests/test_forms.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/auth_tests/test_forms.py b/tests/auth_tests/test_forms.py index 4740cb6200..0f8b48286a 100644 --- a/tests/auth_tests/test_forms.py +++ b/tests/auth_tests/test_forms.py @@ -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>", ) |
