#590 - Adapt homepage redesign changes (#597)

* - Change content
- Edit the homepage images #521
- Remove account creation option
- Remove navigation
- Remove links to Notify docs in footer

* Updated alt text, jinja comment consistency for the footer
This commit is contained in:
Jonathan Bobel
2023-07-06 10:33:27 -04:00
committed by GitHub
parent 34c6dd215c
commit f570bb5015
6 changed files with 85 additions and 60 deletions

View File

@@ -16,24 +16,25 @@ def test_non_logged_in_user_can_see_homepage(
page = client_request.get('main.index', _test_page_title=False)
assert page.h1.text.strip() == (
'Send text messages to your users'
'Send text messages to your participants'
)
assert page.select_one('a.usa-button.usa-button--big')['href'] == url_for(
'main.register'
'main.sign_in',
)
assert page.select_one('meta[name=description]')['content'].strip() == (
'U.S. Notify lets you send text messages '
'to your users. Try it now if you work in federal, state, or local government.'
'U.S. Notify lets you send text messages to your users. '
'Try it now if you work in federal, state, or local government.'
)
assert normalize_spaces(page.select_one('#whos-using-notify').text) == (
'Whos using U.S. Notify ' # 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.'
)
# 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
# # Hiding this next area for the pilot
# # 'See the list of services and organizations. '
# 'There are 111 Organizations and 9,999 Services using Notify.'
# )
assert page.select_one('#whos-using-notify a') is None

View File

@@ -379,20 +379,21 @@ def test_a_page_should_nave_selected_navigation_item(
assert len(selected_nav_items) == 1
assert selected_nav_items[0].text.strip() == selected_nav_item
# Hiding nav for the pilot, will uncomment after
@pytest.mark.parametrize('endpoint, selected_nav_item', [
# ('main.documentation', 'Documentation'),
('main.support', 'Contact us'),
])
def test_a_page_should_nave_selected_header_navigation_item(
client_request,
endpoint,
selected_nav_item,
):
page = client_request.get(endpoint, service_id=SERVICE_ONE_ID)
selected_nav_items = page.select('nav.usa-nav a.usa-nav__link.usa-current')
assert len(selected_nav_items) == 1
assert selected_nav_items[0].text.strip() == selected_nav_item
# @pytest.mark.parametrize('endpoint, selected_nav_item', [
# # ('main.documentation', 'Documentation'),
# ('main.support', 'Contact us'),
# ])
# def test_a_page_should_nave_selected_header_navigation_item(
# client_request,
# endpoint,
# selected_nav_item,
# ):
# page = client_request.get(endpoint, service_id=SERVICE_ONE_ID)
# selected_nav_items = page.select('nav.usa-nav a.usa-nav__link.usa-current')
# assert len(selected_nav_items) == 1
# assert selected_nav_items[0].text.strip() == selected_nav_item
@pytest.mark.parametrize('endpoint, selected_nav_item', [