diff options
author | Duda Dornelles <ddornell@thoughtworks.com> | 2014-10-13 19:29:36 +0200 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2014-10-14 17:48:27 +0200 |
commit | cd4dffcfcb3f7473913e2b50571a182689efeedc (patch) | |
tree | db8ff0748e5a63efcb3d8d82a7b8cc774376d86a /service/test/functional/features/steps | |
parent | 451218929536b59d3e0a72a9c651a1911e1bd1cd (diff) |
No more tag_index - now whoosh does everythin
Diffstat (limited to 'service/test/functional/features/steps')
-rw-r--r-- | service/test/functional/features/steps/common.py | 4 | ||||
-rw-r--r-- | service/test/functional/features/steps/tag_list.py | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/service/test/functional/features/steps/common.py b/service/test/functional/features/steps/common.py index 54b84d40..015c24ef 100644 --- a/service/test/functional/features/steps/common.py +++ b/service/test/functional/features/steps/common.py @@ -66,6 +66,10 @@ def find_element_by_xpath(context, xpath): return context.browser.find_element_by_xpath(xpath) +def find_element_by_id(context, id): + return context.browser.find_element_by_id(id) + + def find_element_by_css_selector(context, css_selector): return context.browser.find_element_by_css_selector(css_selector) diff --git a/service/test/functional/features/steps/tag_list.py b/service/test/functional/features/steps/tag_list.py index 4eee61d1..b6f654f0 100644 --- a/service/test/functional/features/steps/tag_list.py +++ b/service/test/functional/features/steps/tag_list.py @@ -30,5 +30,5 @@ def impl(context, tag): wait_for_user_alert_to_disapear(context) click_first_element_with_class(context, 'left-off-canvas-toggle') context.browser.execute_script("window.scrollBy(0, -200)") - e = wait_until_element_is_visible_by_locator(context, (By.XPATH, '//*[@id="tag-list"]/ul/li[contains(translate(., "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "abcdefghijklmnopqrstuvwxyz"), "%s")]' % tag)) + e = find_element_by_id(context, 'tag-%s' % tag.lower()) e.click() |