mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
Changing U.S. Notify to Notify.gov (#656)
This commit is contained in:
@@ -10,7 +10,7 @@ def test_bad_url_returns_page_not_found(client_request):
|
||||
_expected_status=404,
|
||||
)
|
||||
assert page.h1.string.strip() == 'Page not found'
|
||||
assert page.title.string.strip() == 'Page not found – U.S. Notify'
|
||||
assert page.title.string.strip() == 'Page not found – Notify.gov'
|
||||
|
||||
|
||||
def test_load_service_before_request_handles_404(client_request, mocker):
|
||||
@@ -37,7 +37,7 @@ def test_malformed_token_returns_page_not_found(client_request, url):
|
||||
assert page.h1.string.strip() == 'Page not found'
|
||||
flash_banner = page.find('div', class_='banner-dangerous').string.strip()
|
||||
assert flash_banner == "There’s something wrong with the link you’ve used."
|
||||
assert page.title.string.strip() == 'Page not found – U.S. Notify'
|
||||
assert page.title.string.strip() == 'Page not found – Notify.gov'
|
||||
|
||||
|
||||
def test_csrf_returns_400(client_request, mocker):
|
||||
@@ -51,8 +51,8 @@ def test_csrf_returns_400(client_request, mocker):
|
||||
_test_page_title=False,
|
||||
)
|
||||
|
||||
assert page.h1.string.strip() == 'Sorry, there’s a problem with U.S. Notify'
|
||||
assert page.title.string.strip() == 'Sorry, there’s a problem with the service – U.S. Notify'
|
||||
assert page.h1.string.strip() == 'Sorry, there’s a problem with Notify.gov'
|
||||
assert page.title.string.strip() == 'Sorry, there’s a problem with the service – Notify.gov'
|
||||
|
||||
|
||||
def test_csrf_redirects_to_sign_in_page_if_not_signed_in(client_request, mocker):
|
||||
@@ -69,5 +69,5 @@ def test_csrf_redirects_to_sign_in_page_if_not_signed_in(client_request, mocker)
|
||||
def test_405_returns_something_went_wrong_page(client_request, mocker):
|
||||
page = client_request.post_url('/', _expected_status=405)
|
||||
|
||||
assert page.h1.string.strip() == 'Sorry, there’s a problem with U.S. Notify'
|
||||
assert page.title.string.strip() == 'Sorry, there’s a problem with the service – U.S. Notify'
|
||||
assert page.h1.string.strip() == 'Sorry, there’s a problem with Notify.gov'
|
||||
assert page.title.string.strip() == 'Sorry, there’s a problem with the service – Notify.gov'
|
||||
|
||||
Reference in New Issue
Block a user