Commit 444e3e95 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Update example to display time for waiting for validate_action and showing the page

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@46008 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 633a28ab
......@@ -52,8 +52,12 @@ def createPerson(result, browser):
# Validate it (as the workflow action may not be available yet, try 5 times
# and sleep 5s between each attempts before failing)
result('Validate', browser.mainForm.submitSelectWorkflow(value='validate_action',
maximum_attempt_number=5,
sleep_between_attempt=5))
waiting_for_validate_action, show_validate_time = \
browser.mainForm.submitSelectWorkflow(value='validate_action',
maximum_attempt_number=5,
sleep_between_attempt=5)
result('Waiting for validate_action', waiting_for_validate_action)
result('Show validate', show_validate_time)
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