mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-17 04:59:37 -04:00
Invite users to choose how team members sign in
Email auth is a new feature that currently we’ve only given to teams who have contact us with a problem. At the moment, we’re aware of all the teams that are sharing phone numbers when they sign in. We think that in the future there will be other teams who encounter this problem. So we should let them know that they should contact us if they are having the problem. At the moment we want to talk to teams before giving them access to the feature, so that we’re confident it’s only going to teams from whom it’s more secure than using a text message code.
This commit is contained in:
@@ -46,6 +46,7 @@ def mock_get_service_settings_page_common(
|
||||
|
||||
'Label Value Action',
|
||||
'Service name service one Change',
|
||||
'Sign-in method Text message code Change',
|
||||
|
||||
'Label Value Action',
|
||||
'Send emails On Change',
|
||||
@@ -66,6 +67,7 @@ def mock_get_service_settings_page_common(
|
||||
|
||||
'Label Value Action',
|
||||
'Service name service one Change',
|
||||
'Sign-in method Text message code Change',
|
||||
|
||||
'Label Value Action',
|
||||
'Send emails On Change',
|
||||
@@ -122,6 +124,7 @@ def test_should_show_overview(
|
||||
(['email', 'sms', 'inbound_sms', 'international_sms'], [
|
||||
|
||||
'Service name service one Change',
|
||||
'Sign-in method Text message code Change',
|
||||
|
||||
'Label Value Action',
|
||||
'Send emails On Change',
|
||||
@@ -139,9 +142,10 @@ def test_should_show_overview(
|
||||
'Send letters Off Change',
|
||||
|
||||
]),
|
||||
(['email', 'sms'], [
|
||||
(['email', 'sms', 'email_auth'], [
|
||||
|
||||
'Service name service one Change',
|
||||
'Sign-in method Email link or text message code Change',
|
||||
|
||||
'Label Value Action',
|
||||
'Send emails On Change',
|
||||
@@ -249,7 +253,7 @@ def test_letter_contact_block_shows_none_if_not_set(
|
||||
))
|
||||
|
||||
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
|
||||
div = page.find_all('tr')[8].find_all('td')[1].div
|
||||
div = page.find_all('tr')[9].find_all('td')[1].div
|
||||
assert div.text.strip() == 'Not set'
|
||||
assert 'default' in div.attrs['class'][0]
|
||||
|
||||
@@ -269,7 +273,7 @@ def test_escapes_letter_contact_block(
|
||||
))
|
||||
|
||||
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
|
||||
div = str(page.find_all('tr')[8].find_all('td')[1].div)
|
||||
div = str(page.find_all('tr')[9].find_all('td')[1].div)
|
||||
assert 'foo<br/>bar' in div
|
||||
assert '<script>' not in div
|
||||
|
||||
@@ -713,9 +717,9 @@ def test_and_more_hint_appears_on_settings_with_more_than_just_a_single_sender(
|
||||
page.select('tbody tr')[index].text
|
||||
)
|
||||
|
||||
assert get_row(page, 2) == "Email reply to addresses test@example.com …and 2 more Manage"
|
||||
assert get_row(page, 4) == "Text message sender Example …and 2 more Manage"
|
||||
assert get_row(page, 9) == "Sender addresses 1 Example Street …and 2 more Manage"
|
||||
assert get_row(page, 3) == "Email reply to addresses test@example.com …and 2 more Manage"
|
||||
assert get_row(page, 5) == "Text message sender Example …and 2 more Manage"
|
||||
assert get_row(page, 10) == "Sender addresses 1 Example Street …and 2 more Manage"
|
||||
|
||||
|
||||
@pytest.mark.parametrize('sender_list_page, expected_output', [
|
||||
@@ -2003,6 +2007,20 @@ def test_cant_resume_active_service(
|
||||
'Your service can receive text messages sent to 0781239871.'
|
||||
)
|
||||
),
|
||||
(
|
||||
'main.service_set_auth_type',
|
||||
[],
|
||||
(
|
||||
'Text message code'
|
||||
)
|
||||
),
|
||||
(
|
||||
'main.service_set_auth_type',
|
||||
['email_auth'],
|
||||
(
|
||||
'Email link or text message code'
|
||||
)
|
||||
),
|
||||
])
|
||||
def test_invitation_pages(
|
||||
logged_in_client,
|
||||
|
||||
Reference in New Issue
Block a user