mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Test if auth type can be chosen while inviting user
This commit is contained in:
@@ -372,6 +372,19 @@ def test_should_show_page_for_one_user(
|
|||||||
assert checkboxes[index].has_attr('checked') == expected_checked
|
assert checkboxes[index].has_attr('checked') == expected_checked
|
||||||
|
|
||||||
|
|
||||||
|
def test_invite_user_allows_to_choose_auth(
|
||||||
|
client_request,
|
||||||
|
mock_get_users_by_service,
|
||||||
|
mock_get_template_folders,
|
||||||
|
service_one,
|
||||||
|
):
|
||||||
|
service_one['permissions'].append('email_auth')
|
||||||
|
page = client_request.get('main.invite_user', service_id=SERVICE_ONE_ID)
|
||||||
|
|
||||||
|
sms_auth_radio_button = page.select_one('input[value="sms_auth"]')
|
||||||
|
assert sms_auth_radio_button.has_attr("disabled") is False
|
||||||
|
|
||||||
|
|
||||||
def test_should_not_show_page_for_non_team_member(
|
def test_should_not_show_page_for_non_team_member(
|
||||||
client_request,
|
client_request,
|
||||||
mock_get_users_by_service,
|
mock_get_users_by_service,
|
||||||
|
|||||||
Reference in New Issue
Block a user