Merge pull request #3180 from alphagov/update-error-page-content

Update error page content
This commit is contained in:
karlchillmaid
2019-11-19 09:39:14 +00:00
committed by GitHub
9 changed files with 44 additions and 20 deletions

View File

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

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() == '403'
assert page.h1.string.strip() == 'You are 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()