summaryrefslogtreecommitdiff
path: root/tests/auth_tests/test_templates.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auth_tests/test_templates.py')
-rw-r--r--tests/auth_tests/test_templates.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auth_tests/test_templates.py b/tests/auth_tests/test_templates.py
index ec1a4e5b75..9651bf585d 100644
--- a/tests/auth_tests/test_templates.py
+++ b/tests/auth_tests/test_templates.py
@@ -52,6 +52,12 @@ class AuthTemplateTests(TestCase):
response = client.get(url)
self.assertContains(response, '<title>Enter new password</title>')
self.assertContains(response, '<h1>Enter new password</h1>')
+ # The username is added to the password reset confirmation form to help
+ # browser's password managers.
+ self.assertContains(
+ response,
+ '<input style="display: none;" autocomplete="username" value="jsmith">',
+ )
def test_PasswordResetCompleteView(self):
response = PasswordResetCompleteView.as_view()(self.request)