summaryrefslogtreecommitdiff
path: root/service/test
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2015-01-09 17:42:57 +0100
committerFolker Bernitt <fbernitt@thoughtworks.com>2015-01-12 09:19:37 +0100
commit61f10b66d2256ede834f50765a5a9151f71b8f53 (patch)
tree60f4a436470240c8ef6128e4bff14bcb632996ef /service/test
parent6d93625da5f64ae573c1604566e6fa9181ef611f (diff)
Improved functional test waits in mail_view steps.
Diffstat (limited to 'service/test')
-rw-r--r--service/test/functional/features/steps/mail_view.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/service/test/functional/features/steps/mail_view.py b/service/test/functional/features/steps/mail_view.py
index 0c37d089..ca0d68dc 100644
--- a/service/test/functional/features/steps/mail_view.py
+++ b/service/test/functional/features/steps/mail_view.py
@@ -40,9 +40,11 @@ def impl(context, tag):
@when('I add the tag \'{tag}\' to that mail')
def impl(context, tag):
- context.browser.execute_script("$('#new-tag-button').click();")
- context.browser.execute_script("$('#new-tag-input').val('%s');" % tag)
- e = find_element_by_css_selector(context, '#new-tag-input')
+ b = wait_until_element_is_visible_by_locator(context, (By.ID, 'new-tag-button'))
+ b.click()
+
+ e = wait_until_element_is_visible_by_locator(context, (By.ID, 'new-tag-input'))
+ e.send_keys(tag)
e.send_keys(Keys.ENTER)