summaryrefslogtreecommitdiff
path: root/service/test
diff options
context:
space:
mode:
authorTulio Casagrande <tcasagra@thoughtworks.com>2016-12-06 09:39:14 -0200
committerTulio Casagrande <tcasagra@thoughtworks.com>2016-12-06 09:41:46 -0200
commit76efb47c91a6add0369e699e935bcf048ab9e3b0 (patch)
treec06d365da913f34ab581d712154bacc8235b4892 /service/test
parentb4735378f343fbcb695956a161b21076254de79f (diff)
Remove sleep time when waiting for interstitial
See: https://github.com/pixelated/project-issues/issues/381
Diffstat (limited to 'service/test')
-rw-r--r--service/test/functional/features/steps/login.py6
-rw-r--r--service/test/functional/features/steps/mail_list.py4
2 files changed, 2 insertions, 8 deletions
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 <http://www.gnu.org/licenses/>.
-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