mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 08:28:15 -04:00
Use correct back link pattern on escalation page
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
{% extends "withoutnav_template.html" %}
|
{% extends "withoutnav_template.html" %}
|
||||||
{% from "components/textbox.html" import textbox %}
|
{% from "components/textbox.html" import textbox %}
|
||||||
{% from "components/page-footer.html" import page_footer %}
|
{% from "components/page-footer.html" import page_footer %}
|
||||||
|
{% from "components/page-header.html" import page_header %}
|
||||||
|
|
||||||
{% block per_page_title %}
|
{% block per_page_title %}
|
||||||
Out of hours emergencies
|
Out of hours emergencies
|
||||||
@@ -8,9 +9,10 @@
|
|||||||
|
|
||||||
{% block maincolumn_content %}
|
{% block maincolumn_content %}
|
||||||
|
|
||||||
<h1 class="heading-large">
|
{{ page_header(
|
||||||
Out of hours emergencies
|
'Out of hours emergencies',
|
||||||
</h1>
|
url_for('.support')
|
||||||
|
)}}
|
||||||
<div class="govuk-grid-row">
|
<div class="govuk-grid-row">
|
||||||
<div class="govuk-grid-column-two-thirds">
|
<div class="govuk-grid-column-two-thirds">
|
||||||
<p>
|
<p>
|
||||||
@@ -36,9 +38,6 @@
|
|||||||
<a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('main.feedback', ticket_type='report-problem', severe='no') }}">Fill in this form</a>
|
<a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('main.feedback', ticket_type='report-problem', severe='no') }}">Fill in this form</a>
|
||||||
and we’ll get back to you by the next working day.
|
and we’ll get back to you by the next working day.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
|
||||||
<a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('.support') }}">Back to support</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -600,9 +600,11 @@ def test_bat_email_page(
|
|||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
|
|
||||||
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
|
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')[0].text == 'Back'
|
||||||
assert page.select('main a')[1]['href'] == url_for('main.feedback', ticket_type=PROBLEM_TICKET_TYPE, severe='no')
|
assert page.select('main a')[0]['href'] == url_for('main.support')
|
||||||
next_page_response = client.get(page.select('main a')[1]['href'])
|
assert page.select('main a')[2].text == 'Fill in this form'
|
||||||
|
assert page.select('main a')[2]['href'] == url_for('main.feedback', ticket_type=PROBLEM_TICKET_TYPE, severe='no')
|
||||||
|
next_page_response = client.get(page.select('main a')[2]['href'])
|
||||||
next_page = BeautifulSoup(next_page_response.data.decode('utf-8'), 'html.parser')
|
next_page = BeautifulSoup(next_page_response.data.decode('utf-8'), 'html.parser')
|
||||||
assert next_page.h1.text.strip() == 'Report a problem'
|
assert next_page.h1.text.strip() == 'Report a problem'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user