Commit bf0b6163 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_accounting_renderjs_ui_test] wip

parent dd4e5f40
...@@ -10,29 +10,36 @@ Grouping from account transaction view ...@@ -10,29 +10,36 @@ Grouping from account transaction view
<!-- Setup {{{ --> <!-- Setup {{{ -->
<tal:block metal:use-macro="here/Zuite_CommonTemplateForAccountingRenderjsUi/macros/init"/> <tal:block metal:use-macro="here/Zuite_CommonTemplateForAccountingRenderjsUi/macros/init"/>
<tr> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/go_to_module_list" />
<td>selectAndWait</td>
<td>select_module</td> <tal:block tal:define="click_configuration python: {'text': 'Accounts'}">
<td>Accounts</td> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_page_link" />
</tr> </tal:block>
<tr> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
<td>clickAndWait</td>
<td>Folder_show:method</td> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/clear_query" />
<td></td>
</tr>
<!-- }}} --> <!-- }}} -->
<!-- {{{ Select Receivable account and use grouping fast input --> <!-- {{{ Select Receivable account and use grouping fast input -->
<tr> <tal:block tal:define="search_query python: 'title: &quot;Receivable&quot;'">
<td>clickAndWait</td> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/search_in_form_list" />
<td>link=Receivable</td> </tal:block>
<td></td>
</tr> <tal:block tal:define="click_configuration python: {'text': 'Receivable'}">
<tr> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_page_link" />
<td>clickAndWait</td> </tal:block>
<td>//img[@alt='Grouping Reference Fast Input']</td> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
<td></td>
</tr> <tal:block tal:define="click_configuration python: {'text': 'Actions'}">
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_header_link" />
</tal:block>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
<tal:block tal:define="click_configuration python: {'text': 'Grouping Reference Fast Input'}">
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_page_link" />
</tal:block>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded" />
<!-- The mode should be 'grouping' by default --> <!-- The mode should be 'grouping' by default -->
<tr> <tr>
...@@ -50,26 +57,27 @@ Grouping from account transaction view ...@@ -50,26 +57,27 @@ Grouping from account transaction view
<td>field_your_node</td> <td>field_your_node</td>
<td>41 - Receivable</td> <td>41 - Receivable</td>
</tr> </tr>
<tr> <tal:block tal:define="pagination_configuration python: {'header': '(4)', 'footer': '4 Records'}">
<td>verifyText</td> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/check_listbox_pagination_text" />
<td>//span[@class="listbox-current-page-total-number"]</td> </tal:block>
<td>4 records</td>
</tr> <tal:block tal:define="line_configuration python: {'line': 3}">
<tr> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/select_listbox_line" />
<td>click</td> </tal:block>
<td>//tr[@class='listbox-data-line-3 DataB']/td[1]/input</td> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/update_dialog" />
<td></td> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
</tr> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded" />
<tr> <tal:block tal:define="pagination_configuration python: {'header': '(4)', 'footer': '4 Records'}">
<td>clickAndWait</td> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/check_listbox_pagination_text" />
<td>//button[@id="dialog_update_button"]</td> </tal:block>
<td></td> <tal:block tal:define="notification_configuration python: {'class': 'success',
</tr> 'text': 'Updated'}">
<tr> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification" />
<td>assertPortalStatusMessage</td> </tal:block>
<td>Updated</td>
<td></td> <tal:block tal:define="line_configuration python: {'value': 'on', 'line': 3}">
</tr> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/check_listbox_line_selection" />
</tal:block>
<tr> <tr>
<td>verifyText</td> <td>verifyText</td>
<td>//label[contains(text(),"Total Selected Amount")]/../div[1]/</td> <td>//label[contains(text(),"Total Selected Amount")]/../div[1]/</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