Skip to content

Commit

Permalink
Merge pull request #6102 from freedomofpress/5828-reply-message
Browse files Browse the repository at this point in the history
Tweak "Reply has been stored" message
  • Loading branch information
zenmonkeykstop authored Sep 23, 2021
2 parents fc963c8 + 70f02e5 commit c1f4fdb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion securedrop/journalist_app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ def reply() -> werkzeug.Response:
"<b>{}</b> {}".format(
# Translators: Precedes a message confirming the success of an operation.
escape(gettext("Success!")),
escape(gettext("Your reply has been stored."))
escape(gettext("The source will receive your reply "
"next time they log in."))
)
), 'success')
finally:
Expand Down
2 changes: 1 addition & 1 deletion securedrop/tests/functional/journalist_navigation_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ def _journalist_sends_reply_to_source(self):

def reply_stored():
if not self.accept_languages:
assert "Your reply has been stored." in self.driver.page_source
assert "The source will receive your reply" in self.driver.page_source

self.wait_for(reply_stored)

Expand Down
2 changes: 1 addition & 1 deletion securedrop/tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def _helper_test_reply(journalist_app, source_app, config, test_journo,
pass
else:
text = resp.data.decode('utf-8')
assert "Your reply has been stored." in text
assert "The source will receive your reply" in text

resp = app.get(col_url)
text = resp.data.decode('utf-8')
Expand Down

0 comments on commit c1f4fdb

Please sign in to comment.