Commit 1280d87d authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui_test] Fixes

parent f8843d7e
...@@ -72,12 +72,12 @@ ...@@ -72,12 +72,12 @@
<td colspan="3"><b>Trying to save disabled option</b></td> <td colspan="3"><b>Trying to save disabled option</b></td>
</tr> </tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/click_save" /> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/click_save" />
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
<tal:block tal:define="notification_configuration python: {'class': 'error', <tal:block tal:define="notification_configuration python: {'class': 'error',
'text': 'Input data has errors.'}"> 'text': 'Input data has errors.'}">
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification" /> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification" />
</tal:block> </tal:block>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
<tr> <tr>
<td>assertTextPresent</td> <td>assertTextPresent</td>
......
...@@ -78,9 +78,10 @@ ...@@ -78,9 +78,10 @@
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/submit_filter" /> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/submit_filter" />
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" /> <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" />
<tr> <tr>
<td>verifyElementPresent</td> <td>assertElementPresent</td>
<td>link=Title 0</td> <td>link=Title 0</td>
<td></td> <td></td>
</tr> </tr>
...@@ -98,28 +99,29 @@ ...@@ -98,28 +99,29 @@
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/submit_filter" /> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/submit_filter" />
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" /> <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" />
<tr> <tr>
<td>verifyElementPresent</td> <td>assertElementPresent</td>
<td>link=Title 9</td> <td>link=Title 9</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>verifyElementPresent</td> <td>assertElementPresent</td>
<td>link=Title 8</td> <td>link=Title 8</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>verifyElementPresent</td> <td>assertElementPresent</td>
<td>link=Title 7</td> <td>link=Title 7</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>verifyElementNotPresent</td> <td>assertElementNotPresent</td>
<td>link=Title 0</td> <td>link=Title 0</td>
<td></td> <td></td>
</tr> </tr>
......
...@@ -60,12 +60,12 @@ ...@@ -60,12 +60,12 @@
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//a[@data-i18n='Logout']</td> <td>//a[text()='Logout']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>click</td> <td>click</td>
<td>//a[@data-i18n='Logout']</td> <td>//a[text()='Logout']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -127,12 +127,12 @@ ...@@ -127,12 +127,12 @@
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//a[@data-i18n='Logout']</td> <td>//a[text()='Logout']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>click</td> <td>click</td>
<td>//a[@data-i18n='Logout']</td> <td>//a[text()='Logout']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
......
...@@ -53,14 +53,14 @@ ...@@ -53,14 +53,14 @@
<tr> <tr>
<td>verifyElementPresent</td> <td>verifyElementPresent</td>
<td>//h1[@data-i18n='Edit Workflow']</td> <td>//h1[contains(text(), 'Edit Workflow')]</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>verifyElementPresent</td> <td>verifyElementPresent</td>
<td>//h1[@data-i18n='Foo Workflow']</td> <td>//h1[contains(text(), 'Foo Workflow')]</td>
<td></td> <td></td>
</tr> </tr>
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//h1[@data-i18n='External Processing Workflow']</td> <td>//h1[contains(text(), 'External Processing Workflow')]</td>
<td></td> <td></td>
</tr> </tr>
...@@ -101,14 +101,14 @@ ...@@ -101,14 +101,14 @@
<tr> <tr>
<td>verifyElementPresent</td> <td>verifyElementPresent</td>
<td>//h1[@data-i18n='Document Publication Workflow']</td> <td>//h1[contains(text(), 'Document Publication Workflow')]</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>verifyElementPresent</td> <td>verifyElementPresent</td>
<td>//h1[@data-i18n='Edit Workflow']</td> <td>//h1[contains(text(), 'Edit Workflow')]</td>
<td></td> <td></td>
</tr> </tr>
......
...@@ -71,12 +71,12 @@ ...@@ -71,12 +71,12 @@
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//a[@data-i18n='Logout']</td> <td>//a[text()='Logout']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>click</td> <td>click</td>
<td>//a[@data-i18n='Logout']</td> <td>//a[text()='Logout']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//h1//a[@data-i18n='Worklist']</td> <td>//h1//a[text()='Worklist']</td>
<td></td> <td></td>
</tr> </tr>
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
</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_content_loaded" />
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded" />
<!-- Go to the first element --> <!-- Go to the first element -->
<tr> <tr>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//a[@data-i18n="Modules"]</td> <td>//a[text()="mokuai"]</td>
<td></td> <td></td>
</tr> </tr>
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<tr> <tr>
<td>click</td> <td>click</td>
<td>//a[@data-i18n="Modules"]</td> <td>//a[text()="mokuai"]</td>
<td></td> <td></td>
</tr> </tr>
......
...@@ -35,14 +35,14 @@ ...@@ -35,14 +35,14 @@
<!-- default has two language --> <!-- default has two language -->
<tr> <tr>
<td>assertElementPresent</td> <td>assertElementPresent</td>
<td>//option[@data-i18n='Wolof']</td> <td>//option[text()='Wolof']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>verifyElementPresent</td> <td>verifyElementPresent</td>
<td>//option[@data-i18n='English']</td> <td>//option[text()='English']</td>
<td></td> <td></td>
</tr> </tr>
...@@ -95,48 +95,48 @@ ...@@ -95,48 +95,48 @@
<tr> <tr>
<td>verifyText</td> <td>verifyText</td>
<td>//a[@data-i18n="Home"]</td> <td>//a[@class="ui-btn-icon-left ui-icon-home"]</td>
<td>Home</td> <td>Home</td>
</tr> </tr>
<tr> <tr>
<td>verifyText</td> <td>verifyText</td>
<td>//a[@data-i18n="Modules"]</td> <td>//a[@class="ui-btn-icon-left ui-icon-puzzle-piece"]</td>
<td>Modules</td> <td>Modules</td>
</tr> </tr>
<tr> <tr>
<td>verifyText</td> <td>verifyText</td>
<td>//a[@data-i18n="Worklists"]</td> <td>//a[@class="ui-btn-icon-left ui-icon-tasks"]</td>
<td>Worklists</td> <td>Worklists</td>
</tr> </tr>
<tr> <tr>
<td>verifyText</td> <td>verifyText</td>
<td>//a[@data-i18n="History"]</td> <td>//a[@class="ui-btn-icon-left ui-icon-history"]</td>
<td>History</td> <td>History</td>
</tr> </tr>
<tr> <tr>
<td>verifyText</td> <td>verifyText</td>
<td>//a[@data-i18n="Search"]</td> <td>//a[@class="ui-btn-icon-left ui-icon-search"]</td>
<td>Search</td> <td>Search</td>
</tr> </tr>
<tr> <tr>
<td>verifyText</td> <td>verifyText</td>
<td>//a[@data-i18n="Preferences"]</td> <td>//a[@class="ui-btn-icon-left ui-icon-sliders"]</td>
<td>Preferences</td> <td>Preferences</td>
</tr> </tr>
<tr> <tr>
<td>verifyText</td> <td>verifyText</td>
<td>//a[@data-i18n="Logout"]</td> <td>//a[@class="ui-btn-icon-left ui-icon-power-off"]</td>
<td>Logout</td> <td>Logout</td>
</tr> </tr>
......
...@@ -19,23 +19,19 @@ ...@@ -19,23 +19,19 @@
<td></td> <td></td>
</tr> </tr>
<tr> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_app_loaded" />
<td>waitForElementPresent</td>
<td>//a[@data-i18n="Home"]</td>
<td></td>
</tr>
<tr> <tr>
<td>verifyText</td> <td>verifyText</td>
<td>//div[@data-gadget-scope='panel']//a[@data-i18n="Home"]</td> <td>//div[@data-gadget-scope='panel']//a[@class="ui-btn-icon-left ui-icon-home"]</td>
<td>zhuye</td> <td>zhuye</td>
</tr> </tr>
<tr> <tr>
<td>verifyText</td> <td>verifyText</td>
<td>//div[@data-gadget-scope='panel']//a[@data-i18n="Modules"]</td> <td>//div[@data-gadget-scope='panel']//a[@class="ui-btn-icon-left ui-icon-puzzle-piece"]</td>
<td>mokuai</td> <td>mokuai</td>
</tr> </tr>
...@@ -48,28 +44,28 @@ ...@@ -48,28 +44,28 @@
<tr> <tr>
<td>verifyText</td> <td>verifyText</td>
<td>//div[@data-gadget-scope='panel']//a[@data-i18n="History"]</td> <td>//div[@data-gadget-scope='panel']//a[@class="ui-btn-icon-left ui-icon-tasks"]</td>
<td>lishi</td> <td>lishi</td>
</tr> </tr>
<tr> <tr>
<td>verifyText</td> <td>verifyText</td>
<td>//div[@data-gadget-scope='panel']//a[@data-i18n="Search"]</td> <td>//div[@data-gadget-scope='panel']//a[@class="ui-btn-icon-left ui-icon-search"]</td>
<td>soushuo</td> <td>soushuo</td>
</tr> </tr>
<tr> <tr>
<td>verifyText</td> <td>verifyText</td>
<td>//div[@data-gadget-scope='panel']//a[@data-i18n="Preferences"]</td> <td>//div[@data-gadget-scope='panel']//a[@class="ui-btn-icon-left ui-icon-sliders"]</td>
<td>pianai</td> <td>pianai</td>
</tr> </tr>
<tr> <tr>
<td>verifyText</td> <td>verifyText</td>
<td>//div[@data-gadget-scope='panel']//a[@data-i18n="Logout"]</td> <td>//div[@data-gadget-scope='panel']//a[@class="ui-btn-icon-left ui-icon-power-off"]</td>
<td>tuichu</td> <td>tuichu</td>
</tr> </tr>
......
...@@ -440,6 +440,11 @@ ...@@ -440,6 +440,11 @@
<td>//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//nav//span[contains(text(), "ecord")]</td> <td>//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//nav//span[contains(text(), "ecord")]</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>assertElementPresent</td>
<td>//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//nav//span[contains(text(), "ecord")]</td>
<td></td>
</tr>
<tr> <tr>
<td colspan="3"><p></p></td> <td colspan="3"><p></p></td>
</tr> </tr>
......
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