Commit 680887c5 authored by Jérome Perrin's avatar Jérome Perrin Committed by Aurel

trade_ui_test: make macros more reusable

Init script just have to print "Data Created."

init macro no longer redirect to the order created by
Zuite_createSaleOrderForTradeZuite, so that it's more reusable.
parent fd0f7d59
......@@ -11,6 +11,11 @@ Test MultiRelationStringField on a sale order line inside the other sale order l
<!-- Setup {{{ -->
<tal:block metal:use-macro="here/Zuite_CommonTemplateForTradeZuite/macros/init" />
<tr>
<td>open</td>
<td>${base_url}/sale_order_module/erp5_trade_ui_test_sale_order_1</td>
<td></td>
</tr>
<!-- }}} -->
<tr>
......
......@@ -46,7 +46,7 @@
</tr>
<tr>
<td>assertTextPresent</td>
<td>Sale Order Created.</td>
<td>Data Created.</td>
<td></td>
</tr>
......@@ -60,11 +60,6 @@
<td>Done.</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>&#36;{base_url}/sale_order_module/erp5_trade_ui_test_sale_order_1</td>
<td></td>
</tr>
</tal:block>
<tal:block metal:define-macro="toggleSupplyLineBasePricePerSlice">
<tr>
......
context.sale_order_module.newContent(portal_type='Sale Order', id='erp5_trade_ui_test_sale_order_1')
return "Sale Order Created."
return "Data Created."
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