Commit eb8ac1ed authored by Ayush Tiwari's avatar Ayush Tiwari

[erp5_pdm_renderjs_ui_test]: Add macros to test correct links on stock view

parent ad8ab2f0
...@@ -41,6 +41,8 @@ Test stock browser for confirmed state ...@@ -41,6 +41,8 @@ Test stock browser for confirmed state
<tal:block metal:use-macro="here/PdmZuite_checkStockBrowserForRenderjsUi/macros/check_total_for_inventory" /> <tal:block metal:use-macro="here/PdmZuite_checkStockBrowserForRenderjsUi/macros/check_total_for_inventory" />
</tal:block> </tal:block>
<tal:block metal:use-macro="here/PdmZuite_CommonTemplateForRenderjsUi/macros/check_links_for_stocks" />
<!-- Check the links in hardcoded way --> <!-- Check the links in hardcoded way -->
<!-- TODO: If possible, move to micros --> <!-- TODO: If possible, move to micros -->
<tr> <tr>
......
...@@ -41,6 +41,8 @@ Test stock browser for confirmed state ...@@ -41,6 +41,8 @@ Test stock browser for confirmed state
<tal:block metal:use-macro="here/PdmZuite_checkStockBrowserForRenderjsUi/macros/check_total_for_inventory" /> <tal:block metal:use-macro="here/PdmZuite_checkStockBrowserForRenderjsUi/macros/check_total_for_inventory" />
</tal:block> </tal:block>
<tal:block metal:use-macro="here/PdmZuite_CommonTemplateForRenderjsUi/macros/check_links_for_stocks" />
<!-- Check the links in hardcoded way --> <!-- Check the links in hardcoded way -->
<!-- TODO: If possible, move to micros --> <!-- TODO: If possible, move to micros -->
<tr> <tr>
......
...@@ -41,6 +41,8 @@ Test stock browser for confirmed state ...@@ -41,6 +41,8 @@ Test stock browser for confirmed state
<tal:block metal:use-macro="here/PdmZuite_checkStockBrowserForRenderjsUi/macros/check_total_for_inventory" /> <tal:block metal:use-macro="here/PdmZuite_checkStockBrowserForRenderjsUi/macros/check_total_for_inventory" />
</tal:block> </tal:block>
<tal:block metal:use-macro="here/PdmZuite_CommonTemplateForRenderjsUi/macros/check_links_for_stocks" />
<!-- Check the links in hardcoded way --> <!-- Check the links in hardcoded way -->
<!-- TODO: If possible, move to micros --> <!-- TODO: If possible, move to micros -->
<tr> <tr>
......
...@@ -41,6 +41,8 @@ Test stock browser for confirmed state ...@@ -41,6 +41,8 @@ Test stock browser for confirmed state
<tal:block metal:use-macro="here/PdmZuite_checkStockBrowserForRenderjsUi/macros/check_total_for_inventory" /> <tal:block metal:use-macro="here/PdmZuite_checkStockBrowserForRenderjsUi/macros/check_total_for_inventory" />
</tal:block> </tal:block>
<tal:block metal:use-macro="here/PdmZuite_CommonTemplateForRenderjsUi/macros/check_links_for_stocks" />
<!-- Check the links in hardcoded way --> <!-- Check the links in hardcoded way -->
<!-- TODO: If possible, move to micros --> <!-- TODO: If possible, move to micros -->
<tr> <tr>
......
...@@ -41,6 +41,8 @@ Test stock browser for confirmed state ...@@ -41,6 +41,8 @@ Test stock browser for confirmed state
<tal:block metal:use-macro="here/PdmZuite_checkStockBrowserForRenderjsUi/macros/check_total_for_inventory" /> <tal:block metal:use-macro="here/PdmZuite_checkStockBrowserForRenderjsUi/macros/check_total_for_inventory" />
</tal:block> </tal:block>
<tal:block metal:use-macro="here/PdmZuite_CommonTemplateForRenderjsUi/macros/check_links_for_stocks" />
<!-- Check the links in hardcoded way --> <!-- Check the links in hardcoded way -->
<!-- TODO: If possible, move to micros --> <!-- TODO: If possible, move to micros -->
<tr> <tr>
......
...@@ -41,6 +41,8 @@ Test stock browser for confirmed state ...@@ -41,6 +41,8 @@ Test stock browser for confirmed state
<tal:block metal:use-macro="here/PdmZuite_checkStockBrowserForRenderjsUi/macros/check_total_for_inventory" /> <tal:block metal:use-macro="here/PdmZuite_checkStockBrowserForRenderjsUi/macros/check_total_for_inventory" />
</tal:block> </tal:block>
<tal:block metal:use-macro="here/PdmZuite_CommonTemplateForRenderjsUi/macros/check_links_for_stocks" />
<!-- Check the links in hardcoded way --> <!-- Check the links in hardcoded way -->
<!-- TODO: If possible, move to micros --> <!-- TODO: If possible, move to micros -->
<tr> <tr>
......
...@@ -41,6 +41,8 @@ Test stock browser for confirmed state ...@@ -41,6 +41,8 @@ Test stock browser for confirmed state
<tal:block metal:use-macro="here/PdmZuite_checkStockBrowserForRenderjsUi/macros/check_total_for_inventory" /> <tal:block metal:use-macro="here/PdmZuite_checkStockBrowserForRenderjsUi/macros/check_total_for_inventory" />
</tal:block> </tal:block>
<tal:block metal:use-macro="here/PdmZuite_CommonTemplateForRenderjsUi/macros/check_links_for_stocks" />
<!-- Check the links in hardcoded way --> <!-- Check the links in hardcoded way -->
<!-- TODO: If possible, move to micros --> <!-- TODO: If possible, move to micros -->
<tr> <tr>
......
...@@ -102,6 +102,45 @@ ...@@ -102,6 +102,45 @@
</tr> </tr>
</tal:block> </tal:block>
<tal:block metal:define-macro="check_links_for_stocks">
<tr>
<td colspan="3"><b>Check Correct Links For Stock View</b></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[1]/a</td>
<td></td>
</tr>
<tr>
<td>verifyValue</td>
<td>//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[1]/a/@href</td>
<td>regexp:.*push_history.*</td>
</tr>
<tr>
<td>verifyValue</td>
<td>//div[@data-gadget-scope='field_listbox']//table/tbody/tr[1]/td[1]/a/@href</td>
<td>regexp:.*view_movement_history.*</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@data-gadget-scope='field_listbox']//table/tbody/tr[2]/td[1]/a</td>
<td></td>
</tr>
<tr>
<td>verifyValue</td>
<td>//div[@data-gadget-scope='field_listbox']//table/tbody/tr[2]/td[1]/a/@href</td>
<td>regexp:.*push_history.*</td>
</tr>
<tr>
<td>verifyValue</td>
<td>//div[@data-gadget-scope='field_listbox']//table/tbody/tr[2]/td[1]/a/@href</td>
<td>regexp:.*view_movement_history.*</td>
</tr>
<tr>
<td colspan="3"><p></p></td>
</tr>
</tal:block>
<tal:block metal:define-macro="check_links"> <tal:block metal:define-macro="check_links">
<tr> <tr>
<td colspan="3"><b>Check Correct Links For Sale Packing List</b></td> <td colspan="3"><b>Check Correct Links For Sale Packing List</b></td>
......
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