aboutsummaryrefslogtreecommitdiffstats
path: root/tests/steps/addressbook_steps.py
diff options
context:
space:
mode:
authorVadim Rutkovsky <vrutkovs@redhat.com>2014-04-28 22:07:36 +0800
committerVadim Rutkovsky <vrutkovs@redhat.com>2014-04-29 00:47:01 +0800
commit91fbbc198ad952fde81804f6dd91e475ad6d0ce8 (patch)
treeb208ca5d3677a0e1a1b94ea1dd52c502f8e4d963 /tests/steps/addressbook_steps.py
parent9f673bc5193d41f615619a061fd89f9543f75149 (diff)
downloadgsoc2013-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/steps/addressbook_steps.py')
-rw-r--r--tests/steps/addressbook_steps.py2
1 files changed, 2 insertions, 0 deletions
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