From 0e42b6d9220b33d7d1a42aa7901d45c573c53ce3 Mon Sep 17 00:00:00 2001 From: kaeff Date: Mon, 7 Sep 2015 16:53:04 +0200 Subject: Attempt to reduce flakiness of checkboxes.feature --- service/test/functional/features/steps/common.py | 5 ----- service/test/functional/features/steps/mail_list.py | 1 - 2 files changed, 6 deletions(-) diff --git a/service/test/functional/features/steps/common.py b/service/test/functional/features/steps/common.py index af801902..863fb6ca 100644 --- a/service/test/functional/features/steps/common.py +++ b/service/test/functional/features/steps/common.py @@ -45,11 +45,6 @@ def wait_for_user_alert_to_disapear(context, timeout=TIMEOUT_IN_S): wait_until_element_is_invisible_by_locator(context, (By.ID, 'user-alerts'), timeout) -def wait_for_user_alert_to_appear_and_disapear(context, timeout=TIMEOUT_IN_S): - wait_until_element_is_visible_by_locator(context, (By.ID, LOADING), timeout) - wait_until_element_is_invisible_by_locator(context, (By.ID, LOADING), timeout) - - def wait_until_elements_are_visible_by_locator(context, locator_tuple, timeout=TIMEOUT_IN_S): spend_time_in_reactor() wait = WebDriverWait(context.browser, timeout) diff --git a/service/test/functional/features/steps/mail_list.py b/service/test/functional/features/steps/mail_list.py index ff7acaf4..9b7bdb4a 100644 --- a/service/test/functional/features/steps/mail_list.py +++ b/service/test/functional/features/steps/mail_list.py @@ -102,7 +102,6 @@ def impl(context): context.current_mail_id = last_email().get_attribute('id') last_email().find_element_by_tag_name('input').click() find_element_by_id(context, 'delete-selected').click() - wait_for_user_alert_to_appear_and_disapear(context) wait_for_user_alert_to_disapear(context) spend_time_in_reactor() assert 0 == len(context.browser.find_element_by_id('mail-list').find_elements_by_tag_name('li')) -- cgit v1.2.3