mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-02 07:27:35 -04:00
Make page titles match <h1> tags on static pages
This commit fixes pages where this isn’t the case, and modifies the test to use the `client_request` fixture, which checks for this mismatch.
This commit is contained in:
@@ -35,14 +35,10 @@ def test_logged_in_user_redirects_to_choose_service(
|
||||
'features', 'callbacks', 'documentation', 'security'
|
||||
])
|
||||
def test_static_pages(
|
||||
client,
|
||||
client_request,
|
||||
view,
|
||||
):
|
||||
response = client.get(url_for('main.{}'.format(view)))
|
||||
assert response.status_code == 200
|
||||
|
||||
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
|
||||
|
||||
page = client_request.get('main.{}'.format(view))
|
||||
assert not page.select_one('meta[name=description]')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user