aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/addressbook.feature1
-rw-r--r--tests/steps/addressbook_steps.py2
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