summaryrefslogtreecommitdiff
path: root/service/test/functional/features/steps/mail_view.py
diff options
context:
space:
mode:
authorTulio Casagrande <tcasagra@thoughtworks.com>2017-04-12 17:14:51 -0300
committerTulio Casagrande <tcasagra@thoughtworks.com>2017-04-12 17:22:25 -0300
commitcab44227c133af60a31f1988939cbeca5a865efd (patch)
tree5e7f2fcc6160c65243bad345066e9619a62d4393 /service/test/functional/features/steps/mail_view.py
parenteb811d8d5d767be45038806e0effdd63510bda3a (diff)
[#927] Confirm email with the recovery code
with @deniscostadsc
Diffstat (limited to 'service/test/functional/features/steps/mail_view.py')
-rw-r--r--service/test/functional/features/steps/mail_view.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/service/test/functional/features/steps/mail_view.py b/service/test/functional/features/steps/mail_view.py
index 65959b70..89464245 100644
--- a/service/test/functional/features/steps/mail_view.py
+++ b/service/test/functional/features/steps/mail_view.py
@@ -17,6 +17,7 @@
from behave import then, when
from selenium.webdriver.common.keys import Keys
+from ..page_objects import InboxPage
from common import (
click_button,
find_element_by_css_selector,
@@ -32,12 +33,10 @@ def impl(context, subject):
@then('I see that the body reads \'{expected_body}\'')
+@then('I see that the body has \'{expected_body}\'')
def impl(context, expected_body):
- find_element_by_css_selector(context, '#read-sandbox')
- context.browser.switch_to_frame('read-sandbox')
- e = find_element_by_css_selector(context, 'body')
- assert e.text == expected_body
- context.browser.switch_to_default_content()
+ actual_body = InboxPage(context).get_body_message()
+ assert expected_body in actual_body
@then('that email has the \'{tag}\' tag')