Commit 8fae56be authored by Jérome Perrin's avatar Jérome Perrin

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 b057ad2e
...@@ -11,6 +11,11 @@ Test MultiRelationStringField on a sale order line inside the other sale order l ...@@ -11,6 +11,11 @@ Test MultiRelationStringField on a sale order line inside the other sale order l
<!-- Setup {{{ --> <!-- Setup {{{ -->
<tal:block metal:use-macro="here/Zuite_CommonTemplateForTradeZuite/macros/init" /> <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> <tr>
...@@ -53,4 +58,4 @@ Test MultiRelationStringField on a sale order line inside the other sale order l ...@@ -53,4 +58,4 @@ Test MultiRelationStringField on a sale order line inside the other sale order l
</tbody></table> </tbody></table>
</body> </body>
</html> </html>
<!-- vim: syntax=html foldmethod=marker --> <!-- vim: syntax=html foldmethod=marker -->
\ No newline at end of file
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</tr> </tr>
<tr> <tr>
<td>assertTextPresent</td> <td>assertTextPresent</td>
<td>Sale Order Created.</td> <td>Data Created.</td>
<td></td> <td></td>
</tr> </tr>
...@@ -60,11 +60,6 @@ ...@@ -60,11 +60,6 @@
<td>Done.</td> <td>Done.</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>open</td>
<td>${base_url}/sale_order_module/erp5_trade_ui_test_sale_order_1</td>
<td></td>
</tr>
</tal:block> </tal:block>
<tal:block metal:define-macro="toggleSupplyLineBasePricePerSlice"> <tal:block metal:define-macro="toggleSupplyLineBasePricePerSlice">
<tr> <tr>
......
context.sale_order_module.newContent(portal_type='Sale Order', id='erp5_trade_ui_test_sale_order_1') 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