diff options
| author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-12 11:41:30 +0200 | 
|---|---|---|
| committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-12 11:41:30 +0200 | 
| commit | 2ceab54b474ed3938d74f40bbd8eaeec5ffee4e9 (patch) | |
| tree | eb43a109c71768ee2bea25f7035b8277f4001f25 /service/test/functional/features/steps/mail_list.py | |
| parent | f5a4aaf9d349d477b406f266469e0cd13a572013 (diff) | |
Spend some time in twisted reactor before accessing page.
- Increase likelihood that page and related resources got delivered
  before asserting changes using selenium.
Diffstat (limited to 'service/test/functional/features/steps/mail_list.py')
| -rw-r--r-- | service/test/functional/features/steps/mail_list.py | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/service/test/functional/features/steps/mail_list.py b/service/test/functional/features/steps/mail_list.py index 2b1092c5..0822cd75 100644 --- a/service/test/functional/features/steps/mail_list.py +++ b/service/test/functional/features/steps/mail_list.py @@ -102,7 +102,8 @@ def impl(context):      context.current_mail_id = last_email().get_attribute('id')      last_email().find_element_by_tag_name('input').click()      find_element_by_id(context, 'delete-selected').click() -    assert context.current_mail_id != find_elements_by_css_selector(context, '#mail-list li span a')[0] +    spend_time_in_reactor() +    assert 0 == len(context.browser.find_element_by_id('mail-list').find_elements_by_tag_name('li'))  @when('I check all emails') | 
