Update tests with new error message content

This commit is contained in:
Tom Byers
2019-11-12 17:06:06 +00:00
parent 74e280ce51
commit 272c6a3c91
3 changed files with 5 additions and 5 deletions

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()