mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Fix anchor tag in flash message.
https://www.pivotaltracker.com/story/show/117513779
This commit is contained in:
@@ -27,10 +27,10 @@ def accept_invite(token):
|
|||||||
flash("""
|
flash("""
|
||||||
You’re signed in as {}.
|
You’re signed in as {}.
|
||||||
This invite is for another email address.
|
This invite is for another email address.
|
||||||
<a href='{}'>Sign out</a> and click the link again to accept this invite.
|
{} and click the link again to accept this invite.
|
||||||
""".format(
|
""".format(
|
||||||
current_user.email_address,
|
current_user.email_address,
|
||||||
url_for("main.sign_out")
|
url_for("main.sign_out", _external=True)
|
||||||
))
|
))
|
||||||
abort(403)
|
abort(403)
|
||||||
|
|
||||||
|
|||||||
@@ -287,7 +287,8 @@ def test_signed_in_existing_user_cannot_use_anothers_invite(app_,
|
|||||||
banner_contents = flash_banners[0].text.strip()
|
banner_contents = flash_banners[0].text.strip()
|
||||||
assert "You’re signed in as test@user.gov.uk." in banner_contents
|
assert "You’re signed in as test@user.gov.uk." in banner_contents
|
||||||
assert "This invite is for another email address." in banner_contents
|
assert "This invite is for another email address." in banner_contents
|
||||||
assert "<a href='/sign-out'>Sign out</a> and click the link again to accept this invite." in banner_contents
|
assert "{} and click the link again to accept this invite.".format(
|
||||||
|
url_for("main.sign_out", _external=True)) in banner_contents
|
||||||
assert mock_accept_invite.call_count == 0
|
assert mock_accept_invite.call_count == 0
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user