Commit 6adee5ea authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui_test] Wait for the listbox to be loaded before clicking on a line

parent f4eb48d9
...@@ -243,7 +243,7 @@ ...@@ -243,7 +243,7 @@
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/check_search_in_form_list" /> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/check_search_in_form_list" />
</tal:block> </tal:block>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded" />
<tr> <tr>
<td>click</td> <td>click</td>
<td>//tbody/tr[1]//a</td> <td>//tbody/tr[1]//a</td>
......
...@@ -241,6 +241,20 @@ ...@@ -241,6 +241,20 @@
</tr> </tr>
</tal:block> </tal:block>
<tal:block metal:define-macro="wait_for_listbox_loaded">
<tr>
<td colspan="3"><b>Wait for the listbox to be loaded</b></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//tfoot//span[contains(@data-i18n, "Records")]</td>
<td></td>
</tr>
<tr>
<td colspan="3"><p></p></td>
</tr>
</tal:block>
<tal:block metal:define-macro="wait_for_content_loaded_in_menu_page"> <tal:block metal:define-macro="wait_for_content_loaded_in_menu_page">
<tr> <tr>
<td colspan="3"><b>Wait for the content to be loaded (in menu page)</b></td> <td colspan="3"><b>Wait for the content to be loaded (in menu page)</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