Changed link to email address instead, adjusted test to reflect

This commit is contained in:
Jonathan Bobel
2023-08-03 14:46:36 -04:00
parent 61f6bbd0e8
commit 74c1bb3baf
2 changed files with 3 additions and 2 deletions

View File

@@ -206,7 +206,7 @@
<p>
{% if current_user.has_permissions('manage_service') %}
To remove these restrictions, you can send us a
<a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('.request_to_go_live', service_id=current_service.id) }}">request to go live</a>.
<a class="govuk-link govuk-link--no-visited-state" href="mailto:notify-support@gsa.gov">request to go live</a>.
{% else %}
Your service manager can ask to have these restrictions removed.
{% endif %}

View File

@@ -367,7 +367,8 @@ def test_show_restricted_service(
if expected_link:
assert request_to_live_link.text.strip() == 'request to go live'
assert request_to_live_link['href'] == url_for('main.request_to_go_live', service_id=SERVICE_ONE_ID)
email_address = 'notify-support@gsa.gov'
assert request_to_live_link['href'] == f'mailto:{email_address}'
else:
assert not request_to_live_link