mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Add autocomplete attribute to password fields
This helps the browser autocomplete them with the right thing. Value based on https://www.w3.org/TR/WCAG21/#input-purposes
This commit is contained in:
@@ -17,6 +17,7 @@ def test_render_register_returns_template_with_form(client):
|
||||
assert page.find('input', attrs={'name': 'auth_type'}).attrs['value'] == 'sms_auth'
|
||||
assert page.select_one('#email_address')['spellcheck'] == 'false'
|
||||
assert page.select_one('#email_address')['autocomplete'] == 'email'
|
||||
assert page.select_one('#password')['autocomplete'] == 'new-password'
|
||||
assert 'Create an account' in response.get_data(as_text=True)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user