From 358faac44b6b3e5820a3acdd927b988f0b1ba313 Mon Sep 17 00:00:00 2001 From: Folker Bernitt Date: Tue, 14 Oct 2014 13:52:29 +0200 Subject: 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 --- service/test/functional/features/steps/compose.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'service/test/functional/features/steps/compose.py') 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): -- cgit v1.2.3