Commit 2c3200d1 authored by Rafael Monnerat's avatar Rafael Monnerat

Follow up user-Howto.Link.Persons.and.Organisations-HTML5 changes

The Tutorial Functional Test creates an additional Organisation during
the test, this change update the clean up to delete this additional
Organisation created.
parent b944c645
......@@ -82,6 +82,7 @@ return {\'now\': DateTime(),\n
\'link_howto_person_first_name\': \'ZUITE-TEST-LINK\',\n
\'link_howto_person_last_name\': \'USER-001\',\n
\'link_howto_organisation_title\': \'ZUITE-TEST-LINK-ORGANISATION-001\',\n
\'link_howto_organisation2_title\': \'ZUITE-TEST-LINK-ORGANISATION-002\',\n
\'product_howto_product_title\': \'ZUITE-TEST-PRODUCT-PRODUCT-001\',\n
\'product_howto_organisation_title\': \'ZUITE-TEST-PRODUCT-ORGANISATION-001\',\n
\'sale_howto_product_title\': \'ZUITE-TEST-SALEORDER-PRODUCT-001\',\n
......
......@@ -64,6 +64,12 @@ organisation_list = context.Zuite_checkPortalCatalog(portal_type=\'Organisation\
if organisation_list is not None:\n
portal.organisation_module.deleteContent(organisation_list[0].getId())\n
\n
# remove the organisation of the test if existing\n
organisation_list = context.Zuite_checkPortalCatalog(portal_type=\'Organisation\', max_count=1,\n
title=context.Zuite_getHowToInfo()[\'link_howto_organisation2_title\'])\n
if organisation_list is not None:\n
portal.organisation_module.deleteContent(organisation_list[0].getId())\n
\n
return "Clean Ok"\n
</string> </value>
</item>
......
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