summaryrefslogtreecommitdiff
path: root/service/test/functional/features/steps/mail_view.py
diff options
context:
space:
mode:
Diffstat (limited to 'service/test/functional/features/steps/mail_view.py')
-rw-r--r--service/test/functional/features/steps/mail_view.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/service/test/functional/features/steps/mail_view.py b/service/test/functional/features/steps/mail_view.py
index 82fc28af..565031b5 100644
--- a/service/test/functional/features/steps/mail_view.py
+++ b/service/test/functional/features/steps/mail_view.py
@@ -19,14 +19,17 @@ from common import *
@then('I see that the subject reads \'{subject}\'')
def impl(context, subject):
- e = find_element_by_css_selector(context, '#mail-view .subject')
+ e = find_element_by_css_selector(context, '#mail-view .mail-read-view__header-subject')
assert e.text == subject
@then('I see that the body reads \'{expected_body}\'')
def impl(context, expected_body):
- e = find_element_by_css_selector(context, '#mail-view .bodyArea')
+ 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()
@then('that email has the \'{tag}\' tag')
@@ -97,13 +100,13 @@ def impl(context):
@when('I choose to trash')
def impl(context):
context.browser.execute_script("$('button#view-more-actions').click()")
- click_button(context, 'Delete this message', 'span')
+ click_button(context, 'Delete this message', 'li')
@then('I see the mail has a cc and a bcc recipient')
def impl(context):
- cc = find_element_by_css_selector(context, '.msg-header .cc')
- bcc = find_element_by_css_selector(context, '.msg-header .bcc')
+ cc = find_element_by_css_selector(context, '.mail-read-view__header-recipients .cc')
+ bcc = find_element_by_css_selector(context, '.mail-read-view__header-recipients .bcc')
assert cc is not None
assert bcc is not None