Remove <h2> tag around service name in nav

The heading structure of most pages is incorrect (`<h2>` followed by
`<h1>`). The `<h1>` indicates the main purpose of the page, the service
name (currently the first `<h2>`) doesn't need to be a heading.
This commit is contained in:
Chris Hill-Scott
2017-02-13 10:46:56 +00:00
parent 135ff1ee77
commit d1b53682cd
4 changed files with 4 additions and 5 deletions

View File

@@ -102,7 +102,7 @@ def test_show_restricted_service(
response = logged_in_client.get(url_for('main.service_settings', service_id=service_one['id']))
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
assert page.find('h1').text == 'Settings'
assert page.find_all('h2')[1].text == 'Your service is in trial mode'
assert page.find_all('h2')[0].text == 'Your service is in trial mode'
def test_switch_service_to_live(