Commit b7e22773 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Before validating, go back to the Person page

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@46001 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ce971638
......@@ -31,6 +31,7 @@ def createPerson(result, browser):
# Check whether the changes have been successfully updated
assert browser.getTransitionMessage() == 'Data updated.'
person_url = browser.url
# Add phone number
result('Add telephone',
......@@ -46,7 +47,9 @@ def createPerson(result, browser):
# Check whether the changes have been successfully updated
assert browser.getTransitionMessage() == 'Data updated.'
# Validate it
# Validate it after going back to the Person page
browser.open(person_url)
result('Validate', browser.mainForm.submitSelectWorkflow(value='validate_action'))
result('Validated', browser.mainForm.submitDialogConfirm())
assert browser.getTransitionMessage() == 'Status changed.'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment