diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-09-10 17:57:59 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-09-11 10:23:14 +0200 |
commit | 4e55ebefb0792c3d40db60f2d246d35e2df5fd00 (patch) | |
tree | cdca90ceface8e43c222f9cc57223a9e5f174bf2 /service/test/functional/features/steps | |
parent | f748f702fe4ba716ef6bd8c90463ddf5861d07b0 (diff) |
Wait for send button to become enabled to avoid implicit timeout
- instead of waiting to not be disabled
- Issue #456
Diffstat (limited to 'service/test/functional/features/steps')
-rw-r--r-- | service/test/functional/features/steps/compose.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/service/test/functional/features/steps/compose.py b/service/test/functional/features/steps/compose.py index 668579b1..e93468a2 100644 --- a/service/test/functional/features/steps/compose.py +++ b/service/test/functional/features/steps/compose.py @@ -49,9 +49,8 @@ def save_impl(context): @when('I send it') def send_impl(context): - assert page_has_css(context, '#send-button[disabled]') is False - context.browser.find_element(By.ID, 'send-button').click() - # wait_until_element_is_deleted(context, (By.ID, 'send-button'), timeout=120) + send_button = wait_until_element_is_visible_by_locator(context, (By.CSS_SELECTOR, '#send-button:enabled')) + send_button.click() def _enter_recipient(context, recipients_field, to_type): |