summaryrefslogtreecommitdiff
path: root/service/test/functional
diff options
context:
space:
mode:
authorNavaL <mnandri@thoughtworks.com>2015-12-29 22:21:41 +0100
committerNavaL <mnandri@thoughtworks.com>2015-12-29 22:22:41 +0100
commit89178d6d63855360126ac6a1392225f5efbaf02b (patch)
treeaa7d3fb96b275bae4a8ecf0ca7d5bb53c91d38ac /service/test/functional
parent22ab584f81b598e1aa61ae86b27b08459b589b16 (diff)
adding a step to toggle cc and bcc fields when forwarding emails -- fixing functional test
Issue #563
Diffstat (limited to 'service/test/functional')
-rw-r--r--service/test/functional/features/forward_trash_archive.feature1
-rw-r--r--service/test/functional/features/steps/compose.py6
2 files changed, 7 insertions, 0 deletions
diff --git a/service/test/functional/features/forward_trash_archive.feature b/service/test/functional/features/forward_trash_archive.feature
index 1d373b88..1daf6934 100644
--- a/service/test/functional/features/forward_trash_archive.feature
+++ b/service/test/functional/features/forward_trash_archive.feature
@@ -23,6 +23,7 @@ Feature: forward and deletion
Given I have a mail in my inbox
When I open the first mail in the 'inbox'
And I choose to forward this mail
+ And I toggle the cc and bcc fields
When for the 'CC' field I enter 'pixelated@friends.org'
And for the 'Bcc' field I enter 'pixelated@family.org'
And I forward this mail
diff --git a/service/test/functional/features/steps/compose.py b/service/test/functional/features/steps/compose.py
index b73521ed..f0bed86e 100644
--- a/service/test/functional/features/steps/compose.py
+++ b/service/test/functional/features/steps/compose.py
@@ -48,6 +48,12 @@ def send_impl(context):
send_button.click()
+@when(u'I toggle the cc and bcc fields')
+def collapse_cc_bcc_fields(context):
+ cc_and_bcc_chevron = wait_until_element_is_visible_by_locator(context, (By.CSS_SELECTOR, '#cc-bcc-collapse'))
+ cc_and_bcc_chevron.click()
+
+
def _enter_recipient(context, recipients_field, to_type):
recipients_field = recipients_field.lower()
browser = context.browser