summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--service/pixelated/config/logger.py1
-rw-r--r--service/test/functional/features/steps/login.py6
-rw-r--r--service/test/functional/features/steps/mail_list.py4
3 files changed, 3 insertions, 8 deletions
diff --git a/service/pixelated/config/logger.py b/service/pixelated/config/logger.py
index 5921a1ca..a1e825a6 100644
--- a/service/pixelated/config/logger.py
+++ b/service/pixelated/config/logger.py
@@ -38,6 +38,7 @@ def init(debug=False):
datefmt='%Y-%m-%d %H:%M:%S',
filemode='a')
+ logging.getLogger('gnupg').setLevel(logging.WARN)
logging.getLogger('gnupg').addFilter(PrivateKeyFilter())
def formatter(event):
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