Don’t spellcheck email addresses

The GOV.UK Design System recommends:
> setting the spellcheck attribute to false so that browsers do not
> spellcheck the email address
This commit is contained in:
Chris Hill-Scott
2019-07-16 08:59:17 +01:00
parent 42300371b0
commit 88242c31d1
2 changed files with 2 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ def test_render_register_returns_template_with_form(client):
assert response.status_code == 200
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
assert page.find('input', attrs={'name': 'auth_type'}).attrs['value'] == 'sms_auth'
assert page.select_one('#email_address')['spellcheck'] == 'false'
assert 'Create an account' in response.get_data(as_text=True)