mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
Refactor sms_code functionality into the class
So it’s all in one place, not two.
This commit is contained in:
@@ -21,6 +21,9 @@ def test_should_render_two_factor_page(
|
||||
assert page.select_one('main p').text.strip() == (
|
||||
'We’ve 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]*'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user