2767 passing

This commit is contained in:
jimmoffet
2022-08-05 00:25:03 -07:00
parent f48872b4cc
commit dad051a662
71 changed files with 497 additions and 374 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 GOV.UK Notify'
assert page.title.string.strip() == 'Page not found US Notify'
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 GOV.UK Notify'
assert page.title.string.strip() == 'Page not found US Notify'
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 GOV.UK Notify'
assert page.title.string.strip() == 'Sorry, theres a problem with the service GOV.UK Notify'
assert page.h1.string.strip() == 'Sorry, theres a problem with US Notify'
assert page.title.string.strip() == 'Sorry, theres a problem with the service US Notify'
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 GOV.UK Notify'
assert page.title.string.strip() == 'Sorry, theres a problem with the service GOV.UK Notify'
assert page.h1.string.strip() == 'Sorry, theres a problem with US Notify'
assert page.title.string.strip() == 'Sorry, theres a problem with the service US Notify'