summaryrefslogtreecommitdiff
path: root/service/test/functional
diff options
context:
space:
mode:
Diffstat (limited to 'service/test/functional')
-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