Commit 43bf2419 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_trade_renderjs_ui_test] Time to fail

parent 74289c98
......@@ -5,7 +5,11 @@ delivery_id = "erp5_trade_renderjs_ui_test_delivery"
# Delete event
module = portal.getDefaultModule(delivery_portal_type)
if getattr(module, delivery_id, None) is not None:
delivery = getattr(module, delivery_id, None)
if delivery is not None:
for linking_document in portal.portal_catalog(strict__any__uid=delivery.getUid()):
linking_document.getParentValue().manage_delObjects([linking_document.getId()])
module.manage_delObjects([delivery_id])
return "Deleted Successfully."
......@@ -96,20 +96,6 @@
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/wait_for_activities" />
<tr>
<td>open</td>
<td>${delivery_url}/1?editable=1</td>
<td></td>
</tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_app_loaded" />
<tr>
<td>type</td>
<td>field_my_quantity</td>
<td>5</td>
</tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/save" />
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/wait_for_activities" />
<tr>
<td>open</td>
<td>${delivery_url}</td>
......@@ -128,6 +114,19 @@
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/wait_for_activities" />
<tr>
<td>open</td>
<td>${delivery_url}/1?editable=1</td>
<td></td>
</tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_app_loaded" />
<tr>
<td>type</td>
<td>field_my_quantity</td>
<td>5</td>
</tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/save" />
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/wait_for_activities" />
</tal:block>
......
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