From 76efb47c91a6add0369e699e935bcf048ab9e3b0 Mon Sep 17 00:00:00 2001 From: Tulio Casagrande Date: Tue, 6 Dec 2016 09:39:14 -0200 Subject: Remove sleep time when waiting for interstitial See: https://github.com/pixelated/project-issues/issues/381 --- service/test/functional/features/steps/login.py | 6 ------ service/test/functional/features/steps/mail_list.py | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'service/test/functional') diff --git a/service/test/functional/features/steps/login.py b/service/test/functional/features/steps/login.py index b5e88608..6ee521e9 100644 --- a/service/test/functional/features/steps/login.py +++ b/service/test/functional/features/steps/login.py @@ -13,7 +13,6 @@ # # You should have received a copy of the GNU Affero General Public License # along with Pixelated. If not, see . -import time from behave import given, when, then @@ -42,11 +41,6 @@ def click_login(context): @then(u'I should see the fancy interstitial') def step_impl(context): find_element_by_css_selector(context, 'section#hive-section') - _wait_for_interstitial_to_reload() - - -def _wait_for_interstitial_to_reload(): - time.sleep(10) @when(u'I logout') diff --git a/service/test/functional/features/steps/mail_list.py b/service/test/functional/features/steps/mail_list.py index 23724bf2..8e1152f4 100644 --- a/service/test/functional/features/steps/mail_list.py +++ b/service/test/functional/features/steps/mail_list.py @@ -23,10 +23,10 @@ from common import ( execute_ignoring_staleness, find_element_by_id, find_element_by_css_selector, + find_elements_by_css_selector, mail_list_with_subject_exists, wait_for_condition, wait_for_loading_to_finish, - wait_until_element_is_visible_by_locator, wait_until_elements_are_visible_by_locator) @@ -91,7 +91,7 @@ def impl(context): @given('I have mails') @then(u'I have mails') def impl(context): - emails = wait_until_elements_are_visible_by_locator(context, (By.CSS_SELECTOR, '.mail-list-entry')) + emails = find_elements_by_css_selector(context, '.mail-list-entry') assert len(emails) > 0 -- cgit v1.2.3