Commit 37c389c4 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui_test] Update translation tests

parent 12853faa
......@@ -84,6 +84,7 @@
<td colspan="3"><p></p></td>
</tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_app_loaded" />
<tr>
<td>waitForTextPresent</td>
......@@ -144,7 +145,7 @@
<tr>
<td>waitForElementPresent</td>
<td>//select[@name="field_language"]/option[@selected='selected' and @data-i18n='English']</td>
<td>//select[@name="field_language"]/option[@selected='selected' and @value='en']</td>
<td></td>
</tr>
<tr>
......@@ -171,6 +172,7 @@
<td colspan="3"><p></p></td>
</tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_app_loaded" />
<tr>
<td>waitForTextPresent</td>
......
......@@ -20,6 +20,7 @@
<td></td>
</tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_app_loaded" />
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded" />
<tal:block tal:define="search_query python: 'translated_portal_type: &#x22;Web Script&#x22;'">
......
......@@ -37,14 +37,14 @@
<tr>
<td>verifyText</td>
<td>//div[@data-gadget-scope='panel']//a[@data-i18n="Worklists"]</td>
<td>//div[@data-gadget-scope='panel']//a[@class="ui-btn-icon-left ui-icon-tasks"]</td>
<td>gongzhuoliebiao</td>
</tr>
<tr>
<td>verifyText</td>
<td>//div[@data-gadget-scope='panel']//a[@class="ui-btn-icon-left ui-icon-tasks"]</td>
<td>//div[@data-gadget-scope='panel']//a[@class="ui-btn-icon-left ui-icon-history"]</td>
<td>lishi</td>
</tr>
......@@ -101,12 +101,12 @@
<tr>
<td>waitForElementPresent</td>
<td>//div[@data-gadget-scope='panel']//dt[@data-i18n="Views"]</td>
<td>//div[@data-gadget-scope='panel']//dt[@class="ui-btn-icon-left ui-icon-eye"]</td>
<td></td>
</tr>
<tr>
<td>verifyText</td>
<td>//div[@data-gadget-scope='panel']//dt[@data-i18n="Views"]</td>
<td>//div[@data-gadget-scope='panel']//dt[@class="ui-btn-icon-left ui-icon-eye"]</td>
<td>shitu</td>
</tr>
<tr>
......
......@@ -104,13 +104,7 @@
<tr>
<td>waitForElementPresent</td>
<td>//li[text()='tianjia']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//span[text()=' Foo_zhongwen: A new foo']</td>
<td>//li[text()='tianjia Foo_zhongwen: A new foo']</td>
<td></td>
</tr>
......
......@@ -214,9 +214,8 @@
<td>//div[contains(@data-gadget-url, 'gadget_erp5_pt_form_list.html')]//div[@data-gadget-scope='erp5_searchfield']//button[contains(@class, 'search_button')]</td>
<td></td>
</tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
<tr>
<td>assertElementPresent</td>
<td>waitForElementPresent</td>
<td>//div[contains(@data-gadget-url, 'gadget_erp5_field_listbox.html')]//h1//span[contains(@class, "ui-icon-spinner")]</td>
<td></td>
</tr>
......@@ -451,12 +450,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
<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[@class="ui-disabled"]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<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[@class="ui-disabled"]</td>
<td></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