Commit 71963111 authored by Roque's avatar Roque

erp5_officejs_ui_test: fixing synchronization test for discussion tool

parent 7d4f27e0
...@@ -27,6 +27,9 @@ ...@@ -27,6 +27,9 @@
<td>${base_url}/web_site_module/officejs_discussion_tool/</td> <td>${base_url}/web_site_module/officejs_discussion_tool/</td>
<td></td> <td></td>
</tr> </tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_app_loaded" />
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>link=Storages</td> <td>link=Storages</td>
...@@ -37,6 +40,9 @@ ...@@ -37,6 +40,9 @@
<td>link=Storages</td> <td>link=Storages</td>
<td></td> <td></td>
</tr> </tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>link=Erp5</td> <td>link=Erp5</td>
...@@ -62,6 +68,8 @@ ...@@ -62,6 +68,8 @@
<td>//button[@data-i18n='Proceed']</td> <td>//button[@data-i18n='Proceed']</td>
<td></td> <td></td>
</tr> </tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_app_loaded" />
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>link=Add</td> <td>link=Add</td>
...@@ -72,6 +80,7 @@ ...@@ -72,6 +80,7 @@
<td>link=Add</td> <td>link=Add</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//button[@data-i18n='Save']</td> <td>//button[@data-i18n='Save']</td>
...@@ -97,29 +106,22 @@ ...@@ -97,29 +106,22 @@
<td>//input[@title='Title']</td> <td>//input[@title='Title']</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>click</td> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/click_save" />
<td>//button[@data-i18n='Save']</td> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
<td></td> <tal:block tal:define="notification_configuration python: {'class': 'success',
</tr> 'text': 'Data Updated'}">
<tr> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification" />
<td>waitForElementPresent</td> </tal:block>
<td>//div[@data-gadget-scope="notification"]//button[text()='Data Updated']</td>
<td></td>
</tr>
<tr> <tr>
<td>click</td> <td>click</td>
<td>//a[@data-i18n='Document']</td> <td>//a[@data-i18n='Document']</td>
<td></td> <td></td>
</tr> </tr>
<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" /> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded" />
<!-- Verify Search, add another document --> <!-- Verify Search, add another document -->
<tr>
<td>store</td>
<td>search</td>
<td>search</td>
</tr>
<!--
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//a[@data-i18n='Add']</td> <td>//a[@data-i18n='Add']</td>
...@@ -130,11 +132,17 @@ ...@@ -130,11 +132,17 @@
<td>//a[@data-i18n='Add']</td> <td>//a[@data-i18n='Add']</td>
<td></td> <td></td>
</tr> </tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//button[@data-i18n='Save']</td> <td>//button[@data-i18n='Save']</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>store</td>
<td>search</td>
<td>search</td>
</tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>identifier=title</td> <td>identifier=title</td>
...@@ -145,17 +153,20 @@ ...@@ -145,17 +153,20 @@
<td>name=title</td> <td>name=title</td>
<td>${search}</td> <td>${search}</td>
</tr> </tr>
<tr>
<td>click</td> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/click_save" />
<td>//button[@data-i18n='Save']</td> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
<td></td> <tal:block tal:define="notification_configuration python: {'class': 'success',
</tr> 'text': 'Data Updated'}">
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification" />
</tal:block>
<tr> <tr>
<td>click</td> <td>click</td>
<td>//a[@data-i18n='Document']</td> <td>//a[@data-i18n='Document']</td>
<td></td> <td></td>
</tr> </tr>
--> <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" /> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded" />
<tal:block tal:define="search_query python: 'Titre'"> <tal:block tal:define="search_query python: 'Titre'">
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/search_in_form_list_without_header_url" /> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/search_in_form_list_without_header_url" />
...@@ -185,6 +196,8 @@ ...@@ -185,6 +196,8 @@
<td>link=${title}</td> <td>link=${title}</td>
<td></td> <td></td>
</tr> </tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>identifier=title</td> <td>identifier=title</td>
...@@ -210,11 +223,7 @@ ...@@ -210,11 +223,7 @@
<td>//a[@data-i18n='Synchronize']</td> <td>//a[@data-i18n='Synchronize']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Add']</td>
<td></td>
</tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>name=search</td> <td>name=search</td>
...@@ -223,7 +232,7 @@ ...@@ -223,7 +232,7 @@
<tr> <tr>
<td>type</td> <td>type</td>
<td>name=search</td> <td>name=search</td>
<td>${title}</td><!--replaced--> <td>${title}</td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
...@@ -255,6 +264,7 @@ ...@@ -255,6 +264,7 @@
<td>link=${title}</td> <td>link=${title}</td>
<td></td> <td></td>
</tr> </tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>identifier=title</td> <td>identifier=title</td>
...@@ -276,6 +286,7 @@ ...@@ -276,6 +286,7 @@
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<!--<td>assertTextPresent</td>-->
<td>verifyTextPresent</td> <td>verifyTextPresent</td>
<td>Done.</td> <td>Done.</td>
<td></td> <td></td>
...@@ -323,4 +334,3 @@ ...@@ -323,4 +334,3 @@
</tbody></table> </tbody></table>
</body> </body>
</html> </html>
\ No newline at end of file
-->
\ No newline at end of file
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