Skip to content

Commit

Permalink
Tweak "Reply has been stored" message
Browse files Browse the repository at this point in the history
"Stored" is a very technical term, let's speak instead to the
journalist<->source interaction.

Resolves #5828
  • Loading branch information
eloquence committed Sep 21, 2021
1 parent a6b478f commit 70f02e5
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 70f02e5

Please sign in to comment.