summaryrefslogtreecommitdiff
path: root/service/test/functional/features/steps/compose.py
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2014-10-14 13:52:29 +0200
committerFolker Bernitt <fbernitt@thoughtworks.com>2014-10-14 13:52:29 +0200
commit358faac44b6b3e5820a3acdd927b988f0b1ba313 (patch)
treee198a25cbee0df6c656b962a7791865791a28abb /service/test/functional/features/steps/compose.py
parenta7da0811dab7ec5077749ea8c2936c3b969d69fd (diff)
Tried to make part of functional tests more stable.
- Waiting for text change is unreliable, instead wait for Send button to disappear when sending mail
Diffstat (limited to 'service/test/functional/features/steps/compose.py')
-rw-r--r--service/test/functional/features/steps/compose.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/service/test/functional/features/steps/compose.py b/service/test/functional/features/steps/compose.py
index 16c909e7..5e323866 100644
--- a/service/test/functional/features/steps/compose.py
+++ b/service/test/functional/features/steps/compose.py
@@ -68,8 +68,7 @@ def send_impl(context):
context.execute_steps(u"when I open the first mail in the mail list")
assert_that(is_not(page_has_css(context, '#send-button[disabled]')))
click_button(context, 'Send')
- sleep(1)
- element_should_have_content(context, '#user-alerts', 'Your message was sent!')
+ wait_until_element_is_deleted(context, (By.ID, 'send-button'))
def _enter_recipient(context, recipients_field, to_type):