Changing U.S. Notify to Notify.gov (#656)

This commit is contained in:
Jonathan Bobel
2023-07-28 11:12:46 -04:00
committed by GitHub
parent 817ebbe923
commit 242c7acd34
49 changed files with 125 additions and 139 deletions

View File

@@ -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 == "Theres something wrong with the link youve 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, theres a problem with U.S. Notify'
assert page.title.string.strip() == 'Sorry, theres a problem with the service U.S. Notify'
assert page.h1.string.strip() == 'Sorry, theres a problem with Notify.gov'
assert page.title.string.strip() == 'Sorry, theres 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, theres a problem with U.S. Notify'
assert page.title.string.strip() == 'Sorry, theres a problem with the service U.S. Notify'
assert page.h1.string.strip() == 'Sorry, theres a problem with Notify.gov'
assert page.title.string.strip() == 'Sorry, theres a problem with the service Notify.gov'