Commit c179fbea authored by Jérome Perrin's avatar Jérome Perrin

pdm_ui_test: keep compatibility between stock browser and other pdm_ui_test

init macro cannot open the stock browser report, because some other
tests are assuming that this macro remain in view mode and they can
select another view.
move the "select stock browser report" in a stock-browser-test specific
macro
parent 7ce62c57
......@@ -10,7 +10,7 @@ Test stock browser for confirmed state
<tbody tal:define="init_method string:PdmZuite_createDelivery?state=confirmed">
<!-- Setup {{{ -->
<tal:block metal:use-macro="here/PdmZuite_CommonTemplate/macros/init" />
<tal:block metal:use-macro="here/PdmZuite_checkStockBrowser/macros/init" />
<!-- }}} -->
<!-- Check source -->
......
......@@ -10,7 +10,7 @@ Test stock browser for delivered state
<tbody tal:define="init_method string:PdmZuite_createDelivery?state=delivered">
<!-- Setup {{{ -->
<tal:block metal:use-macro="here/PdmZuite_CommonTemplate/macros/init" />
<tal:block metal:use-macro="here/PdmZuite_checkStockBrowser/macros/init" />
<!-- }}} -->
<!-- Check source -->
......
......@@ -10,7 +10,7 @@ Test stock browser for draft state
<tbody tal:define="init_method string:PdmZuite_createDelivery?state=draft">
<!-- Setup {{{ -->
<tal:block metal:use-macro="here/PdmZuite_CommonTemplate/macros/init" />
<tal:block metal:use-macro="here/PdmZuite_checkStockBrowser/macros/init" />
<!-- }}} -->
<!-- Check source -->
......
......@@ -11,7 +11,7 @@ Test stock browser with node category preference
set_node_category_preference python: True">
<!-- Setup {{{ -->
<tal:block metal:use-macro="here/PdmZuite_CommonTemplate/macros/init" />
<tal:block metal:use-macro="here/PdmZuite_checkStockBrowser/macros/init" />
<!-- }}} -->
<!-- Check destination -->
......
......@@ -10,7 +10,7 @@ Test stock browser for ordered state
<tbody tal:define="init_method string:PdmZuite_createDelivery?state=ordered">
<!-- Setup {{{ -->
<tal:block metal:use-macro="here/PdmZuite_CommonTemplate/macros/init" />
<tal:block metal:use-macro="here/PdmZuite_checkStockBrowser/macros/init" />
<!-- }}} -->
<!-- Check source -->
......
......@@ -10,7 +10,7 @@ Test stock browser for planned state
<tbody tal:define="init_method string:PdmZuite_createDelivery?state=planned">
<!-- Setup {{{ -->
<tal:block metal:use-macro="here/PdmZuite_CommonTemplate/macros/init" />
<tal:block metal:use-macro="here/PdmZuite_checkStockBrowser/macros/init" />
<!-- }}} -->
<!-- Check source -->
......
......@@ -10,7 +10,7 @@ Test stock browser for ready state
<tbody tal:define="init_method string:PdmZuite_createDelivery?state=ready">
<!-- Setup {{{ -->
<tal:block metal:use-macro="here/PdmZuite_CommonTemplate/macros/init" />
<tal:block metal:use-macro="here/PdmZuite_checkStockBrowser/macros/init" />
<!-- }}} -->
<!-- Check source -->
......
......@@ -10,7 +10,7 @@ Test stock browser for started state
<tbody tal:define="init_method string:PdmZuite_createDelivery?state=started">
<!-- Setup {{{ -->
<tal:block metal:use-macro="here/PdmZuite_CommonTemplate/macros/init" />
<tal:block metal:use-macro="here/PdmZuite_checkStockBrowser/macros/init" />
<!-- }}} -->
<!-- Check source -->
......
......@@ -10,7 +10,7 @@ Test stock browser for stopped state
<tbody tal:define="init_method string:PdmZuite_createDelivery?state=stopped">
<!-- Setup {{{ -->
<tal:block metal:use-macro="here/PdmZuite_CommonTemplate/macros/init" />
<tal:block metal:use-macro="here/PdmZuite_checkStockBrowser/macros/init" />
<!-- }}} -->
<!-- Check source -->
......
......@@ -67,11 +67,6 @@
<td>${base_url}/product_module/erp5_pdm_ui_test_product/</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//button[@name="Base_doReport:method"]</td>
<td></td>
</tr>
</tal:block>
<tal:block metal:define-macro="toggleSaleSupplyLineBasePricePerSlice">
......
<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal">
<tal:block metal:define-macro="init">
<tal:block metal:use-macro="here/PdmZuite_CommonTemplate/macros/init" />
<tr>
<td>clickAndWait</td>
<td>//button[@name="Base_doReport:method"]</td>
<td></td>
</tr>
</tal:block>
<tal:block
metal:define-macro="check_inventory"
tal:define="base_url python: '/' + here.getPortalObject().getId();
......
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