diff --git a/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testConfirmedState.zpt b/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testConfirmedState.zpt index 7cf96e7b2cb01ccff724c402f057c925930f5eb2..77cb7f281c65902389b795a783ec6e336127cfda 100644 --- a/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testConfirmedState.zpt +++ b/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testConfirmedState.zpt @@ -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> +<tal:block metal:use-macro="here/PdmZuite_CommonTemplateForRenderjsUi/macros/check_links_for_stocks" /> + <!-- Check the links in hardcoded way --> <!-- TODO: If possible, move to micros --> <tr> diff --git a/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testDeliveredState.zpt b/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testDeliveredState.zpt index 0d95df5b4ef6976e1d84ecd84850252e97de6db7..052c0f1cb6b82d76cc6c75b37dd4b256a2f3d5c1 100644 --- a/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testDeliveredState.zpt +++ b/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testDeliveredState.zpt @@ -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> +<tal:block metal:use-macro="here/PdmZuite_CommonTemplateForRenderjsUi/macros/check_links_for_stocks" /> + <!-- Check the links in hardcoded way --> <!-- TODO: If possible, move to micros --> <tr> diff --git a/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testOrderedState.zpt b/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testOrderedState.zpt index 1f7907170e329e4b2b5324cb23d0e3beb9d9d9fb..ee8f870dd74fda4b706f9aad05ae0595a69d8d7c 100644 --- a/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testOrderedState.zpt +++ b/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testOrderedState.zpt @@ -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> +<tal:block metal:use-macro="here/PdmZuite_CommonTemplateForRenderjsUi/macros/check_links_for_stocks" /> + <!-- Check the links in hardcoded way --> <!-- TODO: If possible, move to micros --> <tr> diff --git a/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testPlannedState.zpt b/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testPlannedState.zpt index 167e444a1677f54d622bc5e6ddb108b942432015..3ce98c4e0682e8b2941b7ca64cb0fcacec08e6c7 100644 --- a/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testPlannedState.zpt +++ b/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testPlannedState.zpt @@ -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> +<tal:block metal:use-macro="here/PdmZuite_CommonTemplateForRenderjsUi/macros/check_links_for_stocks" /> + <!-- Check the links in hardcoded way --> <!-- TODO: If possible, move to micros --> <tr> diff --git a/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testReadyState.zpt b/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testReadyState.zpt index 9a4b135c7ba557bd0fdeee13441fb3860403bf54..17df84fe27e1bbce8b6638af47d0a95e484cd370 100644 --- a/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testReadyState.zpt +++ b/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testReadyState.zpt @@ -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> +<tal:block metal:use-macro="here/PdmZuite_CommonTemplateForRenderjsUi/macros/check_links_for_stocks" /> + <!-- Check the links in hardcoded way --> <!-- TODO: If possible, move to micros --> <tr> diff --git a/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testStartedState.zpt b/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testStartedState.zpt index 66d0d75563ef8d283ad3cbce983dae1add8395db..f90a13df9ce646b6bb0dc00724e998343577734c 100644 --- a/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testStartedState.zpt +++ b/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testStartedState.zpt @@ -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> +<tal:block metal:use-macro="here/PdmZuite_CommonTemplateForRenderjsUi/macros/check_links_for_stocks" /> + <!-- Check the links in hardcoded way --> <!-- TODO: If possible, move to micros --> <tr> diff --git a/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testStoppedState.zpt b/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testStoppedState.zpt index 84bb91aa7c49cd4e3bb108936a1d21369c754ab2..52d5208008959c115151a11350fd7a1a1c083df5 100644 --- a/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testStoppedState.zpt +++ b/bt5/erp5_pdm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_stock_browser_zuite/testStoppedState.zpt @@ -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> +<tal:block metal:use-macro="here/PdmZuite_CommonTemplateForRenderjsUi/macros/check_links_for_stocks" /> + <!-- Check the links in hardcoded way --> <!-- TODO: If possible, move to micros --> <tr> diff --git a/bt5/erp5_pdm_renderjs_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_renderjs_ui_test/PdmZuite_CommonTemplateForRenderjsUi.zpt b/bt5/erp5_pdm_renderjs_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_renderjs_ui_test/PdmZuite_CommonTemplateForRenderjsUi.zpt index 970685c93c18ca8da2ac3f3c9244ab625fd7a990..52eca50bdc28fa3012c705eb255f1a75390b7d19 100644 --- a/bt5/erp5_pdm_renderjs_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_renderjs_ui_test/PdmZuite_CommonTemplateForRenderjsUi.zpt +++ b/bt5/erp5_pdm_renderjs_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_renderjs_ui_test/PdmZuite_CommonTemplateForRenderjsUi.zpt @@ -102,6 +102,45 @@ </tr> </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"> <tr> <td colspan="3"><b>Check Correct Links For Sale Packing List</b></td>