mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
Merge pull request #3215 from alphagov/add-contraction-to-errors
Update error messages
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
{% extends "withoutnav_template.html" %}
|
{% extends "withoutnav_template.html" %}
|
||||||
{% block per_page_title %}You are not authorised to see this page{% endblock %}
|
{% block per_page_title %}You’re not authorised to see this page{% endblock %}
|
||||||
{% block maincolumn_content %}
|
{% block maincolumn_content %}
|
||||||
<div class="grid-row">
|
<div class="grid-row">
|
||||||
<div class="column-two-thirds">
|
<div class="column-two-thirds">
|
||||||
<h1>You are not authorised to see this page</h1>
|
<h1>You’re not authorised to see this page</h1>
|
||||||
<p><a href="{{ url_for('.sign_in' )}}">Sign in</a> to GOV.UK Notify and try again.</p>
|
<p><a href="{{ url_for('.sign_in' )}}">Sign in</a> to GOV.UK Notify and try again.</p>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
{% extends "withoutnav_template.html" %}
|
{% extends "withoutnav_template.html" %}
|
||||||
{% block per_page_title %}You are not allowed to see this page{% endblock %}
|
{% block per_page_title %}You’re not allowed to see this page{% endblock %}
|
||||||
{% block maincolumn_content %}
|
{% block maincolumn_content %}
|
||||||
<div class="grid-row">
|
<div class="grid-row">
|
||||||
<div class="column-two-thirds">
|
<div class="column-two-thirds">
|
||||||
<h1 class="heading-large">
|
<h1 class="heading-large">
|
||||||
You are not allowed to see this page
|
You’re not allowed to see this page
|
||||||
</h1>
|
</h1>
|
||||||
<p>
|
<p>
|
||||||
To check your permissions, speak to a member of your team who can manage settings, team and usage.
|
To check your permissions, speak to a member of your team who can manage settings, team and usage.
|
||||||
|
|||||||
@@ -247,7 +247,7 @@ def test_choose_account_should_not_show_back_to_service_link_if_service_archived
|
|||||||
)),
|
)),
|
||||||
(service_two, 403, (
|
(service_two, 403, (
|
||||||
# Page has no ‘back to’ link
|
# Page has no ‘back to’ link
|
||||||
'You are not allowed to see this page '
|
'You’re not allowed to see this page '
|
||||||
'To check your permissions, speak to a member of your team who can manage settings, team and usage.'
|
'To check your permissions, speak to a member of your team who can manage settings, team and usage.'
|
||||||
)),
|
)),
|
||||||
))
|
))
|
||||||
|
|||||||
@@ -415,7 +415,7 @@ def test_signed_in_existing_user_cannot_use_anothers_invite(
|
|||||||
_follow_redirects=True,
|
_follow_redirects=True,
|
||||||
_expected_status=403,
|
_expected_status=403,
|
||||||
)
|
)
|
||||||
assert page.h1.string.strip() == 'You are not allowed to see this page'
|
assert page.h1.string.strip() == 'You’re not allowed to see this page'
|
||||||
flash_banners = page.find_all('div', class_='banner-dangerous')
|
flash_banners = page.find_all('div', class_='banner-dangerous')
|
||||||
assert len(flash_banners) == 1
|
assert len(flash_banners) == 1
|
||||||
banner_contents = flash_banners[0].text.strip()
|
banner_contents = flash_banners[0].text.strip()
|
||||||
|
|||||||
Reference in New Issue
Block a user