Refactor sms_code functionality into the class

So it’s all in one place, not two.
This commit is contained in:
Chris Hill-Scott
2018-05-07 22:57:18 +01:00
parent 60c56be048
commit 02907afce1
2 changed files with 9 additions and 10 deletions

View File

@@ -21,6 +21,9 @@ def test_should_render_two_factor_page(
assert page.select_one('main p').text.strip() == (
'Weve sent you a text message with a security code.'
)
assert page.select_one('label').text.strip(
'Text message code'
)
assert page.select_one('input')['type'] == 'tel'
assert page.select_one('input')['pattern'] == '[0-9]*'