From dd189164ef0b39132daafcbe5d163bc259ccec8e Mon Sep 17 00:00:00 2001 From: Denis Costa Date: Thu, 13 Apr 2017 16:39:30 -0300 Subject: [#927] Add recovery code mail template with @tuliocasagrande --- service/test/functional/features/steps/mail_list.py | 6 ------ service/test/functional/features/steps/mail_view.py | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'service/test/functional') 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) -- cgit v1.2.3