summaryrefslogtreecommitdiff
path: root/service/test/functional
diff options
context:
space:
mode:
authorAnike Arni <anikarni@gmail.com>2017-04-19 10:25:04 -0300
committerGitHub <noreply@github.com>2017-04-19 10:25:04 -0300
commit3d394a960f43a87e38c2b8ffcbfc521ec5c759ff (patch)
tree9c5854907d0d5b198fbb83e4250c6e8eaa231fc0 /service/test/functional
parent317e614b8d7314b8ec1a8ff3b2dfe7e189ad732e (diff)
parent6061af542abbb293660eedc5fe583234112bfdaa (diff)
Merge pull request #1054 from pixelated/recovery-code-email-template
[#927] Add recovery code mail template
Diffstat (limited to 'service/test/functional')
-rw-r--r--service/test/functional/features/steps/mail_list.py6
-rw-r--r--service/test/functional/features/steps/mail_view.py6
2 files changed, 6 insertions, 6 deletions
diff --git a/service/test/functional/features/steps/mail_list.py b/service/test/functional/features/steps/mail_list.py
index 2953c1af..21694153 100644
--- a/service/test/functional/features/steps/mail_list.py
+++ b/service/test/functional/features/steps/mail_list.py
@@ -138,9 +138,3 @@ def impl(context):
@then('I should not see any email')
def impl(context):
_wait_for_mail_list_to_be_empty(context)
-
-
-@then(u'I see the mail has the recovery code')
-def step_impl(context):
- expected_body = 'Your code'
- context.execute_steps(u"Then I see that the body has '%s'" % expected_body)
diff --git a/service/test/functional/features/steps/mail_view.py b/service/test/functional/features/steps/mail_view.py
index d10f86e7..9b49e6e5 100644
--- a/service/test/functional/features/steps/mail_view.py
+++ b/service/test/functional/features/steps/mail_view.py
@@ -109,3 +109,9 @@ def impl(context):
assert cc is not None
assert bcc is not None
+
+
+@then(u'I see the mail has the recovery code')
+def step_impl(context):
+ expected_body = 'This code is they only way to recover access to your account in case you lose your password.'
+ context.execute_steps(u"Then I see that the body has '%s'" % expected_body)