summaryrefslogtreecommitdiff
path: root/service/test/functional/features/steps/common.py
diff options
context:
space:
mode:
authorkaeff <hi@kaeff.net>2015-09-08 16:49:22 +0200
committerkaeff <hi@kaeff.net>2015-09-08 16:49:22 +0200
commit01b7be57b7e341ea21eaa136b12a532f651d9c30 (patch)
tree760e035c4727914baeb80aa7226b4ddaa9ec0d14 /service/test/functional/features/steps/common.py
parent78cc2dad9c34d1a86f5dfed71b0a2fc29c695478 (diff)
Another try for flaky checkboxes FT: Wait until loading finished
A reincarnation of 0e42b6d. While waiting for appear/disappear didn't help, the current CI failures seem to be related to a sync still be going on.
Diffstat (limited to 'service/test/functional/features/steps/common.py')
-rw-r--r--service/test/functional/features/steps/common.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/service/test/functional/features/steps/common.py b/service/test/functional/features/steps/common.py
index 863fb6ca..a22a83ff 100644
--- a/service/test/functional/features/steps/common.py
+++ b/service/test/functional/features/steps/common.py
@@ -41,6 +41,9 @@ def wait_until_element_is_deleted(context, locator_tuple, timeout=TIMEOUT_IN_S):
wait.until(lambda s: len(s.find_elements(locator_tuple[0], locator_tuple[1])) == 0)
+def wait_for_loading_to_finish(context, timeout=TIMEOUT_IN_S):
+ wait_until_element_is_invisible_by_locator(context, (By.ID, 'loading'), timeout)
+
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)