diff options
author | Vadim Rutkovsky <vrutkovs@redhat.com> | 2014-04-28 22:07:36 +0800 |
---|---|---|
committer | Vadim Rutkovsky <vrutkovs@redhat.com> | 2014-04-29 00:47:01 +0800 |
commit | 91fbbc198ad952fde81804f6dd91e475ad6d0ce8 (patch) | |
tree | b208ca5d3677a0e1a1b94ea1dd52c502f8e4d963 /tests | |
parent | 9f673bc5193d41f615619a061fd89f9543f75149 (diff) | |
download | gsoc2013-evolution-91fbbc198ad952fde81804f6dd91e475ad6d0ce8.tar gsoc2013-evolution-91fbbc198ad952fde81804f6dd91e475ad6d0ce8.tar.gz gsoc2013-evolution-91fbbc198ad952fde81804f6dd91e475ad6d0ce8.tar.bz2 gsoc2013-evolution-91fbbc198ad952fde81804f6dd91e475ad6d0ce8.tar.lz gsoc2013-evolution-91fbbc198ad952fde81804f6dd91e475ad6d0ce8.tar.xz gsoc2013-evolution-91fbbc198ad952fde81804f6dd91e475ad6d0ce8.tar.zst gsoc2013-evolution-91fbbc198ad952fde81804f6dd91e475ad6d0ce8.zip |
tests: wait until contact editor is hidden while saving
Diffstat (limited to 'tests')
-rw-r--r-- | tests/addressbook.feature | 1 | ||||
-rw-r--r-- | tests/steps/addressbook_steps.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/addressbook.feature b/tests/addressbook.feature index 4e318e83df..f7e33a6287 100644 --- a/tests/addressbook.feature +++ b/tests/addressbook.feature @@ -95,6 +95,7 @@ Feature: Addressbook: File: Create contacts In vitae ligula risus. Nunc venenatis leo vel leo facilisis porta. Nam sed magna urna, venenatis. """ + * Save the contact * Refresh addressbook * Select "Doe, Jimmy" contact * Open contact editor for selected contact diff --git a/tests/steps/addressbook_steps.py b/tests/steps/addressbook_steps.py index d515be5da5..2f254e8b1f 100644 --- a/tests/steps/addressbook_steps.py +++ b/tests/steps/addressbook_steps.py @@ -123,6 +123,8 @@ def set_field_to_value(context, field_name, field_value): @step(u'Save the contact') def save_contact(context): context.app.contact_editor.button('Save').click() + assert wait_until(lambda x: not x.showing, context.app.contact_editor),\ + "Contact Editor was not hidden" assert wait_until(lambda x: x.dead, context.app.contact_editor),\ "Contact Editor was not closed" context.app.contact_editor = None |