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

@@ -24,13 +24,13 @@ def test_non_logged_in_user_can_see_homepage(
)
assert page.select_one('meta[name=description]')['content'].strip() == (
'U.S. Notify lets you send text messages to your users. '
'Notify.gov lets you send text messages to your users. '
'Try it now if you work in federal, state, or local government.'
)
# This area is hidden for the pilot
# assert normalize_spaces(page.select_one('#whos-using-notify').text) == (
# 'Whos using U.S. Notify ' # Hiding this next area for the pilot
# 'Whos using Notify.gov ' # Hiding this next area for the pilot
# # Hiding this next area for the pilot
# # 'See the list of services and organizations. '
# 'There are 111 Organizations and 9,999 Services using Notify.'
@@ -225,7 +225,7 @@ def test_old_using_notify_page(client_request):
def test_terms_page_has_correct_content(client_request):
terms_page = client_request.get('main.terms')
assert normalize_spaces(terms_page.select('main p')[0].text) == (
'These terms apply to your services use of U.S. Notify. '
'These terms apply to your services use of Notify.gov. '
'You must be the service manager to accept them.'
)
@@ -243,14 +243,14 @@ def test_css_is_served_from_correct_path(client_request):
'https://static.example.com/css/styles.css?',
][index])
# Commenting out until after the pilot when we'll decide on a logo
# def test_resources_that_use_asset_path_variable_have_correct_path(client_request):
def test_resources_that_use_asset_path_variable_have_correct_path(client_request):
# page = client_request.get('main.documentation') # easy static page
page = client_request.get('main.documentation') # easy static page
# logo_svg_fallback = page.select_one('.usa-flag-logo')
logo_svg_fallback = page.select_one('.usa-flag-logo')
assert logo_svg_fallback['src'].startswith('https://static.example.com/images/us-notify-color.png')
# assert logo_svg_fallback['src'].startswith('https://static.example.com/images/us-notify-color.png')
@pytest.mark.parametrize('extra_args, email_branding_retrieved', (