mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-23 20:01:01 -05:00
Merge pull request #1372 from alphagov/correct-descalation-link
Fix broken link in support process
This commit is contained in:
@@ -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 we’ll get back to you by the next working day.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user