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:
Chris Hill-Scott
2017-12-01 09:46:46 +00:00
parent dcbfe5a834
commit fd908671b0
3 changed files with 5 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
{% extends "withoutnav_template.html" %}
{% block per_page_title %}
Callbacks
Callbacks for received text messages
{% endblock %}
{% block maincolumn_content %}

View File

@@ -3,7 +3,7 @@
{% from "components/sub-navigation.html" import sub_navigation %}
{% block per_page_title %}
Information risk management
Security
{% endblock %}
{% block maincolumn_content %}
@@ -70,7 +70,7 @@
<h2 class="heading-medium">Cabinet Office approval</h2>
<p>Notify has been assessed and approved by the Cabinet Office Senior Information Risk Officer (SIRO). The SIRO checks this approval once a year.</p>
<p>Notify also has approval from the Office of the Governments SIRO to host data within the EEA.</p>
<h2 class="heading-medium">Classifications and security vetting</h2>
<p>Any information in Notify is classified as OFFICIAL under the Government Security Classifications Policy.</p>
<p>All system administration staff working on Notify are cleared to Security Check (SC) level by United Kingdom Security Vetting.</p>

View File

@@ -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]')