Merge pull request #3215 from alphagov/add-contraction-to-errors

Update error messages
This commit is contained in:
karlchillmaid
2019-12-04 12:34:04 +00:00
committed by GitHub
4 changed files with 6 additions and 6 deletions

View File

@@ -1,9 +1,9 @@
{% extends "withoutnav_template.html" %}
{% block per_page_title %}You are not authorised to see this page{% endblock %}
{% block per_page_title %}Youre not authorised to see this page{% endblock %}
{% block maincolumn_content %}
<div class="grid-row">
<div class="column-two-thirds">
<h1>You are not authorised to see this page</h1>
<h1>Youre 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>
</div>
{% endblock %}

View File

@@ -1,10 +1,10 @@
{% extends "withoutnav_template.html" %}
{% block per_page_title %}You are not allowed to see this page{% endblock %}
{% block per_page_title %}Youre not allowed to see this page{% endblock %}
{% block maincolumn_content %}
<div class="grid-row">
<div class="column-two-thirds">
<h1 class="heading-large">
You are not allowed to see this page
Youre not allowed to see this page
</h1>
<p>
To check your permissions, speak to a member of your team who can manage settings, team and usage.

View File

@@ -247,7 +247,7 @@ def test_choose_account_should_not_show_back_to_service_link_if_service_archived
)),
(service_two, 403, (
# Page has no back to link
'You are not allowed to see this page '
'Youre not allowed to see this page '
'To check your permissions, speak to a member of your team who can manage settings, team and usage.'
)),
))

View File

@@ -415,7 +415,7 @@ def test_signed_in_existing_user_cannot_use_anothers_invite(
_follow_redirects=True,
_expected_status=403,
)
assert page.h1.string.strip() == 'You are not allowed to see this page'
assert page.h1.string.strip() == 'Youre not allowed to see this page'
flash_banners = page.find_all('div', class_='banner-dangerous')
assert len(flash_banners) == 1
banner_contents = flash_banners[0].text.strip()