mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Simplify find users by email view - valdiation already done by form
This commit is contained in:
@@ -82,7 +82,7 @@ def test_find_users_by_email_validates_against_empty_search_submission(
|
||||
mocker
|
||||
):
|
||||
client_request.login(platform_admin_user)
|
||||
document = client_request.post('main.find_users_by_email', _data={"search": ""}, _expected_status=400)
|
||||
document = client_request.post('main.find_users_by_email', _data={"search": ""}, _expected_status=200)
|
||||
|
||||
expected_message = "You need to enter full or partial email address to search by."
|
||||
assert document.find('span', {'class': 'error-message'}).text.strip() == expected_message
|
||||
|
||||
Reference in New Issue
Block a user