summaryrefslogtreecommitdiff
path: root/service/test/functional/features/steps/tag_list.py
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2015-09-11 14:57:31 +0200
committerFolker Bernitt <fbernitt@thoughtworks.com>2015-09-11 14:57:31 +0200
commit39bbe79b8667fcb98d1080c2fd3392ec4900c53b (patch)
treec3036d717a9d50082526fe7849402591e9ed2cc3 /service/test/functional/features/steps/tag_list.py
parent2e90a6f3e0ed73d8c3d4eaf58f57dd14fddc806d (diff)
Run javascript instead of sleep
- Issue #456 - Try to end up after all the JS that needs to run
Diffstat (limited to 'service/test/functional/features/steps/tag_list.py')
-rw-r--r--service/test/functional/features/steps/tag_list.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/test/functional/features/steps/tag_list.py b/service/test/functional/features/steps/tag_list.py
index ff7f848d..a715dc67 100644
--- a/service/test/functional/features/steps/tag_list.py
+++ b/service/test/functional/features/steps/tag_list.py
@@ -33,14 +33,14 @@ def expand_side_nav(context):
toggle = find_element_by_class_name(context, 'side-nav-toggle')
toggle.click()
+ context.browser.execute_script('true') # execute something so that page hopefully is rendered
+
@when('I select the tag \'{tag}\'')
def impl(context, tag):
wait_for_user_alert_to_disapear(context)
expand_side_nav(context)
- time.sleep(.5) # need to find something that tells us that side nav is completely loaded
-
wait_until_element_is_visible_by_locator(context, (By.ID, 'tag-%s' % tag), timeout=20)
e = find_element_by_id(context, 'tag-%s' % tag)