Merge pull request #1372 from alphagov/correct-descalation-link

Fix broken link in support process
This commit is contained in:
Chris Hill-Scott
2017-07-19 09:13:31 +01:00
committed by GitHub
2 changed files with 8 additions and 1 deletions

View File

@@ -33,7 +33,7 @@
</p>
<h2 class="heading-medium">Any other problems</h2>
<p class="bottom-gutter-2">
<a href="{{ url_for('main.feedback', ticket_type='problem', severe=False)}}">Fill in this form</a>
<a href="{{ url_for('main.feedback', ticket_type='problem', severe='no') }}">Fill in this form</a>
and well get back to you by the next working day.
</p>
<p>

View File

@@ -449,6 +449,13 @@ def test_bat_email_page(
response = client.get(bat_phone_page)
assert response.status_code == 200
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
assert page.select('main a')[1].text == 'Fill in this form'
assert page.select('main a')[1]['href'] == url_for('main.feedback', ticket_type='problem', severe='no')
next_page_response = client.get(page.select('main a')[1]['href'])
next_page = BeautifulSoup(next_page_response.data.decode('utf-8'), 'html.parser')
assert next_page.h1.text.strip() == 'Report a problem'
client.login(active_user_with_permissions, mocker, service_one)
logged_in_response = client.get(bat_phone_page)
assert logged_in_response.status_code == 302